From 9030bc90065a35227ea4974599bf4dfdd76da47c Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 27 May 2026 16:01:40 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/ChartPunctualEvent.php | 32 +-------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/app/Filament/Widgets/ChartPunctualEvent.php b/app/Filament/Widgets/ChartPunctualEvent.php index 8e45b407..e8a146b1 100644 --- a/app/Filament/Widgets/ChartPunctualEvent.php +++ b/app/Filament/Widgets/ChartPunctualEvent.php @@ -18,8 +18,6 @@ class ChartPunctualEvent extends ChartWidget protected function getData(): array { - $this->f = $this->filters; - $this->heading = 'Events'; $data = LoadEvents::load($this->filters); @@ -40,11 +38,7 @@ class ChartPunctualEvent extends ChartWidget protected function getOptions(): RawJs { - $filter = $this->f; - - switch ($filter['similar_past_matches']) { - case 'none': - return RawJs::make(<<<'JS' + return RawJs::make(<<<'JS' { interaction: { intersect: false, @@ -65,29 +59,5 @@ class ChartPunctualEvent extends ChartWidget }, } JS); - default: - return RawJs::make(<<<'JS' - { - interaction: { - intersect: false, - }, - plugins: { - tooltip: { - callbacks: { - label: (context) => { - return [context.dataset.events[context.dataIndex], context.dataset.results_per_event[context.dataIndex]]; - }, - } - }, - }, - scales: { - y: { - beginAtZero:true, - }, - }, - } - JS); - break; - } } }