[ 'legend' => [ 'display' => false, ], ], 'interaction' => [ 'intersect' => false, ], 'scales' => [ 'y' => [ 'beginAtZero' => true, ], ], ]; protected function getData(): array { if ($this->filters['statistic_type'] == 'crn') { return []; } $this->heading = 'Player'; $this->description = ucfirst(HelperStatisticType::get($this->filters)).' Moving Average'; $data = LoadPlayer::load($this->filters); if ($data) { HelperMoveingAverage::get($data); } return $data; } protected function getType(): string { return 'line'; } }