[ 'legend' => [ 'display' => false, ], ], 'interaction' => [ 'intersect' => false, ], 'callbacks' => [ 'label' => 'function(context) { return " Count: " + context.raw; }', ], ]; public function getDescription(): ?string { return 'Player Punctual'; } protected function getData(): array { if ($this->filters['statistic_type'] == 'crn') { return []; } $this->heading = HelperStatisticType::get($this->filters); $data = LoadPlayer::load($this->filters); return $data; } protected function getType(): string { return 'line'; } }