show only one line in graphis

This commit is contained in:
salam committed 2026-06-14 11:27:02 +02:00
1 parent d6d56f729d
commit 40ddc2e61a
1 file changed
+4 -3
+4 -3
View File
@@ -100,7 +100,7 @@ class LoadEvents
})
->pluck('match_id')->toArray();
$description = ' with '.StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name').' ('.\count($matches_played).')';
$description = ' with ' . StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name') . ' (' . \count($matches_played) . ')';
if (! $matches_played) {
$matches_played[] = -1;
@@ -162,7 +162,7 @@ class LoadEvents
$playing_date[] = $value['starttime']->format('d. F Y H:i');
$results_per_event[] = $value['gls_h'].' : '.$value['gls_a'];
$results_per_event[] = $value['gls_h'] . ' : ' . $value['gls_a'];
if ($team_position == 'home') {
switch ($value['result_code']) {
@@ -347,7 +347,7 @@ class LoadEvents
}
}
if (isset($val_home) && isset($val_away)) {
$events[] = $value->home->name.' vs '.$value->away->name;
$events[] = $value->home->name . ' vs ' . $value->away->name;
$dataset_home[] = $val_home;
$dataset_away[] = $val_away;
}
@@ -392,6 +392,7 @@ class LoadEvents
'backgroundColor' => '#fdc700',
'pointStyle' => $hasdots,
'fill' => false,
'hidden' => true,
],
],
'labels' => $labels,