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