public function __construct() { $this->colors = [Color::BLUE(), Color::GREEN(), Color::RED(), Color::PURPLE(), Color::ORANGE(), Color::BROWN(), Color::PINK(), Color::YELLOW(), Color::GRAY()]; }
public function getScatterChart() { return new ScatterChart([new ScatterDataSet([new ScatterDataPoint(12, 42, 2), new ScatterDataPoint(4, 3, 6), new ScatterDataPoint(16, 2, 4), new ScatterDataPoint(4, 42)], 'foo', Color::PINK()), new ScatterDataSet([new ScatterDataPoint(4, 23, 8), new ScatterDataPoint(14, 30, 7), new ScatterDataPoint(6, 22, 2), new ScatterDataPoint(3, 2)], 'bar', Color::ORANGE())]); }