Beispiel #1
0
 /**
  * Creates a new ChartRangeUI object
  *
  * @param  array $config
  * @throws \Khill\Lavacharts\Exceptions\InvalidConfigValue
  */
 public function __construct($config = [])
 {
     $options = new Options($this->defaults);
     $options->extend($this->chartRangeDefaults);
     $options->remove(['label', 'labelSeparator', 'labelStacking', 'cssClass']);
     parent::__construct($options, $config);
 }
Beispiel #2
0
 /**
  * Builds a new Date or Number RangeUI object.
  *
  * @param array $config Array of options to set
  * @throws \Khill\Lavacharts\Exceptions\InvalidConfigValue
  */
 public function __construct($config = [])
 {
     $options = new Options($this->defaults);
     $options->extend($this->dataRangeDefaults);
     parent::__construct($options, $config);
 }