Days since today wip

This commit is contained in:
salam committed 2026-05-28 10:32:26 +02:00
1 parent bf2aa801fc
commit 894b910eed
3 files changed
+15 -1

No files matched your search

+6
View File
@@ -55,6 +55,12 @@ class ChartEvent extends ChartWidget
}
},
scales: {
x: {
title: {
display: true,
text: 'Days since today'
}
},
y: {
beginAtZero:true,
ticks: {
+6
View File
@@ -59,6 +59,12 @@ class ChartEventMoAv extends ChartWidget
},
},
scales: {
x: {
title: {
display: true,
text: 'Days since today'
}
},
y: {
beginAtZero:true,
},
+3 -1
View File
@@ -6,6 +6,7 @@ use App\Models\StatisticFixtures;
use App\Models\StatistikoDetail;
use App\Models\StatistikoEvent;
use App\Models\StatistikoPlayer;
use Illuminate\Support\Carbon;
class LoadEvents
{
@@ -151,7 +152,8 @@ class LoadEvents
foreach ($res as $value) {
$labels[] = $value['starttime']->format('d.M.Y H:i');
// $labels[] = $value['starttime']->format('d.M.Y H:i');
$labels[] = round($value['starttime']->diffInDays(Carbon::now())).'';
$results_per_event[] = $value['gls_h'].' : '.$value['gls_a'];