示例#1
0
 /**
  * Adds the error message to the error log in the gcharts master object.
  *
  * @param string $msg
  */
 public function error($msg)
 {
     Gcharts::_set_error($this->chartType . '(' . $this->chartLabel . ')', $msg);
 }
 /**
  * Adds the error message to the error log in the gcharts master object.
  *
  * @param string $msg error message.
  */
 private function error($msg)
 {
     Gcharts::_set_error(get_class($this), $msg);
 }
 public function width($width)
 {
     if (is_int($width)) {
         $this->addOption(array('width' => $width));
         return $this;
     } else {
         Gcharts::_set_error(get_class($this), 'Invalid width, must be (int)');
     }
 }
 /**
  * Whether to guess the value of missing points. If true, it will guess the
  * value of any missing data based on neighboring points. If false, it will
  * leave a break in the line at the unknown point.
  *
  * @param boolean $interpolateNulls
  * @return \AreaChart
  */
 public function interpolateNulls($interpolateNulls)
 {
     if (is_bool($interpolateNulls)) {
         $this->addOption(array('interpolateNulls' => $interpolateNulls));
     } else {
         Gcharts::_set_error($where, 'Invalid interpolateNulls value, must be type (boolean).');
     }
     return $this;
 }