From 5779c071a55c87d7c9b510cd1b48f04ad2ea857b Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 18 Jun 2026 16:57:44 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/ChartEvent.php | 10 ++++------ app/Filament/Widgets/ChartEventMoAv.php | 6 ------ app/Filament/Widgets/ChartEventPerf.php | 2 +- app/Filament/Widgets/ChartPlayer.php | 6 ------ app/Filament/Widgets/ChartPlayerMoAv.php | 6 ------ app/Filament/Widgets/ChartPlayerPerf.php | 6 ------ app/Filament/Widgets/ChartPlayerPerfMoAv.php | 6 ------ public/js/app/number-animator.js | 2 +- resources/js/number-animator.js | 2 +- 9 files changed, 7 insertions(+), 39 deletions(-) diff --git a/app/Filament/Widgets/ChartEvent.php b/app/Filament/Widgets/ChartEvent.php index fafcad43..bb470979 100644 --- a/app/Filament/Widgets/ChartEvent.php +++ b/app/Filament/Widgets/ChartEvent.php @@ -61,12 +61,10 @@ class ChartEvent extends ChartWidget plugins: { legend: { position: 'left', - labels: { - font: { - size: 11, - lineHeight: 1.1, - }, - } + generateLabels: (chart) => { + const datasets = chart.data.datasets; + alert(datasets) + }, }, tooltip: { callbacks: { diff --git a/app/Filament/Widgets/ChartEventMoAv.php b/app/Filament/Widgets/ChartEventMoAv.php index 0a87326a..93b39496 100644 --- a/app/Filament/Widgets/ChartEventMoAv.php +++ b/app/Filament/Widgets/ChartEventMoAv.php @@ -65,12 +65,6 @@ class ChartEventMoAv extends ChartWidget plugins: { legend: { position: 'left', - labels: { - font: { - size: 11, - lineHeight: 1.1, - }, - } }, tooltip: { callbacks: { diff --git a/app/Filament/Widgets/ChartEventPerf.php b/app/Filament/Widgets/ChartEventPerf.php index 30e151e8..5fa9061f 100644 --- a/app/Filament/Widgets/ChartEventPerf.php +++ b/app/Filament/Widgets/ChartEventPerf.php @@ -55,7 +55,7 @@ class ChartEventPerf extends ChartWidget size: 11, lineHeight: 1.1, }, - } + }, }, tooltip: { callbacks: { diff --git a/app/Filament/Widgets/ChartPlayer.php b/app/Filament/Widgets/ChartPlayer.php index 9bfd82fe..2cdd137e 100644 --- a/app/Filament/Widgets/ChartPlayer.php +++ b/app/Filament/Widgets/ChartPlayer.php @@ -72,12 +72,6 @@ class ChartPlayer extends ChartWidget plugins: { legend: { position: 'left', - labels: { - font: { - size: 11, - lineHeight: 1.1, - }, - } }, }, scales: { diff --git a/app/Filament/Widgets/ChartPlayerMoAv.php b/app/Filament/Widgets/ChartPlayerMoAv.php index d95b44c7..c7cac884 100644 --- a/app/Filament/Widgets/ChartPlayerMoAv.php +++ b/app/Filament/Widgets/ChartPlayerMoAv.php @@ -75,12 +75,6 @@ class ChartPlayerMoAv extends ChartWidget plugins: { legend: { position: 'left', - labels: { - font: { - size: 11, - lineHeight: 1.1, - }, - } }, }, scales: { diff --git a/app/Filament/Widgets/ChartPlayerPerf.php b/app/Filament/Widgets/ChartPlayerPerf.php index faae3804..79d9746a 100644 --- a/app/Filament/Widgets/ChartPlayerPerf.php +++ b/app/Filament/Widgets/ChartPlayerPerf.php @@ -69,12 +69,6 @@ class ChartPlayerPerf extends ChartWidget plugins: { legend: { position: 'left', - labels: { - font: { - size: 11, - lineHeight: 1.1, - }, - } }, }, scales: { diff --git a/app/Filament/Widgets/ChartPlayerPerfMoAv.php b/app/Filament/Widgets/ChartPlayerPerfMoAv.php index cb6ba9c1..69083997 100644 --- a/app/Filament/Widgets/ChartPlayerPerfMoAv.php +++ b/app/Filament/Widgets/ChartPlayerPerfMoAv.php @@ -73,12 +73,6 @@ class ChartPlayerPerfMoAv extends ChartWidget plugins: { legend: { position: 'left', - labels: { - font: { - size: 11, - lineHeight: 1.1, - }, - } }, }, scales: { diff --git a/public/js/app/number-animator.js b/public/js/app/number-animator.js index 048a79db..b08d3157 100644 --- a/public/js/app/number-animator.js +++ b/public/js/app/number-animator.js @@ -1,5 +1,5 @@ function animate(element, end, duration = 500) { - console.log(element, end); + // console.log(element, end); var element = document.getElementById(element); const startTime = performance.now(); diff --git a/resources/js/number-animator.js b/resources/js/number-animator.js index 048a79db..f936d1b5 100644 --- a/resources/js/number-animator.js +++ b/resources/js/number-animator.js @@ -1,5 +1,5 @@ function animate(element, end, duration = 500) { - console.log(element, end); + // console.log("hallo", element, end); var element = document.getElementById(element); const startTime = performance.now();