[ 'legend' => [ 'display' => false, ], ], 'interaction' => [ 'intersect' => false, ], 'scales' => [ 'y' => [ 'beginAtZero' => true, ], ], ]; protected function getData(): array { $this->heading = 'Events '.HelperStatisticType::get($this->filters); $data = LoadEvents::load($this->filters); if (isset($data['description'])) { $this->description = 'Punctual '.$data['description']; } return $data; } protected function getType(): string { return 'line'; } }