Пример #1
0
 /**
  * Stores all the information about the vertical axis. All options can be
  * set either by passing an array with associative values for option =>
  * value, or by chaining together the functions once an object has been
  * created.
  *
  * @param  array $config Configuration options for the VerticalAxis
  * @return \Khill\Lavacharts\Configs\VerticalAxis
  */
 public function __construct($config = [])
 {
     $options = new Options($this->defaults);
     parent::__construct($options, $config);
 }
Пример #2
0
 /**
  * Stores all the information about the horizontal axis. All options can be
  * set either by passing an array with associative values for option =>
  * value, or by chaining together the functions once an object has been
  * created.
  *
  * @param array $options
  * @return \hAxis
  */
 public function __construct($config = array())
 {
     $this->options = array_merge($this->options, array('allowContainerBoundaryTextCutoff', 'slantedText', 'slantedTextAngle', 'maxAlternation', 'maxTextLines', 'minTextSpacing', 'showTextEvery'));
     parent::__construct($config);
 }