/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }