'.$this->player.' Performance '); } protected function getData(): array { $data = LoadPlayerPerformance::load($this->filters); if ($data) { $this->player = $data['player_name'] ?? ''; } return LoadPlayerPerformance::load($this->filters); } protected function getType(): string { return 'line'; } protected function getOptions(): RawJs { return RawJs::make(<<<'JS' { interaction: { intersect: false, }, scales: { x: { title: { display: true, text: 'Days since today' } }, y: { beginAtZero:true, ticks: { callback: function(value, index, ticks) { return value % 1 === 0 ? value : ''; } } }, }, } JS); } }