Days since today wip
This commit is contained in:
1 parent
bf2aa801fc
commit
894b910eed
3 files changed
+15
-1
No files matched your search
@@ -55,6 +55,12 @@ class ChartEvent extends ChartWidget
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Days since today'
|
||||
}
|
||||
},
|
||||
y: {
|
||||
beginAtZero:true,
|
||||
ticks: {
|
||||
|
||||
@@ -59,6 +59,12 @@ class ChartEventMoAv extends ChartWidget
|
||||
},
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Days since today'
|
||||
}
|
||||
},
|
||||
y: {
|
||||
beginAtZero:true,
|
||||
},
|
||||
|
||||
@@ -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'];
|
||||
|
||||
|
||||
Reference in new issue
Block a user