コード例 #1
0
 /**
  * Builds the configuration when passed an array of options.
  *
  * All options can be set by either passing an array with associative
  * values for option => value, or by chaining together the functions once
  * an object has been created.
  *
  * @param array Associative array containing key => value pairs for the
  * various configuration options.
  * @return \Axis
  */
 public function __construct($config = array())
 {
     $this->options = array_merge($this->options, array('baseline', 'baselineColor', 'direction', 'format', 'gridlines', 'minorGridlines', 'logScale', 'textPosition', 'textStyle', 'title', 'titleTextStyle', 'maxAlternation', 'maxTextLines', 'minTextSpacing', 'showTextEvery', 'maxValue', 'minValue', 'viewWindowMode', 'viewWindow'));
     parent::__construct($config);
 }
コード例 #2
0
 /**
  * Builds the slice object with specified options.
  *
  * @param array Configuration options for the tooltip
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('color', 'offset', 'textStyle');
     parent::__construct($config);
 }
コード例 #3
0
 /**
  * Builds the chartArea object when passed an array of configuration options.
  *
  * @param array $config
  * @return \chartArea
  */
 public function __construct($config = array())
 {
     $this->options = array('left', 'top', 'width', 'height');
     parent::__construct($config);
 }
コード例 #4
0
 /**
  * Builds the tooltip object with specified options.
  *
  * @param array Configuration options for the tooltip
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('showColorCode', 'textStyle', 'trigger');
     parent::__construct($config);
 }
コード例 #5
0
 /**
  * Builds the legend object when passed an array of configuration options.
  *
  * @param array Options for the legend
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('position', 'alignment', 'textStyle');
     parent::__construct($config);
 }