Пример #1
0
 /**
  * LineChart constructor.
  * @param null|string[] $labels
  * @param DataSet[] $dataSets
  */
 public function __construct(array $labels = null, array $dataSets = [])
 {
     parent::__construct();
     $this->labels = $labels;
     $this->dataSets = $dataSets;
 }
Пример #2
0
 /**
  * @param DataPoint[] $dataPoints
  */
 public function __construct(array $dataPoints = [])
 {
     parent::__construct();
     $this->dataPoints = $dataPoints;
 }
Пример #3
0
 /**
  * ScatterChart constructor.
  * @param array|ScatterDataSet[] $scatterData
  */
 public function __construct($scatterData)
 {
     parent::__construct();
     $this->scatterData = $scatterData;
 }