コード例 #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);
 }
コード例 #2
0
ファイル: DataRange.php プロジェクト: tahertechs/lavacharts
 /**
  * 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);
 }