Exemplo n.º 1
0
 /**
  * Builds a new chart with the given label.
  *
  * @param  \Khill\Lavacharts\Values\Label         $chartLabel Identifying label for the chart.
  * @param  \Khill\Lavacharts\DataTables\DataTable $datatable  DataTable used for the chart.
  * @param array                                   $config
  * @throws \Khill\Lavacharts\Exceptions\InvalidOption
  * @internal param array $options Array of options to set for the chart.
  */
 public function __construct(Label $chartLabel, DataTable $datatable, $config = [])
 {
     $calendarOptions = new Options($this->calendarDefaults);
     $options = new Options($this->extChartDefaults);
     $options->merge($calendarOptions);
     $options->set('calendar', $calendarOptions);
     parent::__construct($chartLabel, $datatable, $options, $config);
 }