show only one line in graphis
This commit is contained in:
1 parent
d6d56f729d
commit
40ddc2e61a
1 file changed
+4
-3
@@ -100,7 +100,7 @@ class LoadEvents
|
|||||||
})
|
})
|
||||||
->pluck('match_id')->toArray();
|
->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) {
|
if (! $matches_played) {
|
||||||
$matches_played[] = -1;
|
$matches_played[] = -1;
|
||||||
@@ -162,7 +162,7 @@ class LoadEvents
|
|||||||
|
|
||||||
$playing_date[] = $value['starttime']->format('d. F Y H:i');
|
$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') {
|
if ($team_position == 'home') {
|
||||||
switch ($value['result_code']) {
|
switch ($value['result_code']) {
|
||||||
@@ -347,7 +347,7 @@ class LoadEvents
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($val_home) && isset($val_away)) {
|
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_home[] = $val_home;
|
||||||
$dataset_away[] = $val_away;
|
$dataset_away[] = $val_away;
|
||||||
}
|
}
|
||||||
@@ -392,6 +392,7 @@ class LoadEvents
|
|||||||
'backgroundColor' => '#fdc700',
|
'backgroundColor' => '#fdc700',
|
||||||
'pointStyle' => $hasdots,
|
'pointStyle' => $hasdots,
|
||||||
'fill' => false,
|
'fill' => false,
|
||||||
|
'hidden' => true,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'labels' => $labels,
|
'labels' => $labels,
|
||||||
|
|||||||
Reference in new issue
Block a user