wip
This commit is contained in:
1 parent
1f4fb9cf8a
commit
0c0192bb8b
2 files changed
+6
-10
No files matched your search
@@ -30,7 +30,9 @@ class ChartPunctualEvent extends ChartWidget
|
|||||||
|
|
||||||
$data = LoadEvents::load($this->filters);
|
$data = LoadEvents::load($this->filters);
|
||||||
|
|
||||||
$this->description = 'Punctual '.$data['description'];
|
if (isset($data['description'])) {
|
||||||
|
$this->description = 'Punctual '.$data['description'];
|
||||||
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ class LoadEvents
|
|||||||
|
|
||||||
$end = $filter['end_date'] ?? 0;
|
$end = $filter['end_date'] ?? 0;
|
||||||
|
|
||||||
$similar_past_matches = $filter['similar_past_matches'] ?? 0;
|
|
||||||
|
|
||||||
$statistic_type = $filter['statistic_type'] ?? 0;
|
$statistic_type = $filter['statistic_type'] ?? 0;
|
||||||
|
|
||||||
$team_position = $filter['team_position'];
|
$team_position = $filter['team_position'];
|
||||||
@@ -46,14 +44,14 @@ class LoadEvents
|
|||||||
/**
|
/**
|
||||||
* IF WITH PLAYER
|
* IF WITH PLAYER
|
||||||
*/
|
*/
|
||||||
|
$matches_played = 0;
|
||||||
|
$description = '';
|
||||||
if ($tm_player_id) {
|
if ($tm_player_id) {
|
||||||
$matches_played = StatistikoPlayer::where('tm_player_id', (int) $tm_player_id)->pluck('match_id')->toArray();
|
$matches_played = StatistikoPlayer::where('tm_player_id', (int) $tm_player_id)->pluck('match_id')->toArray();
|
||||||
|
|
||||||
$description = ' (with '.StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name').')';
|
$description = ' (with '.StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name').')';
|
||||||
|
|
||||||
} else {
|
|
||||||
$matches_played = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* STATTISTIC DATA
|
* STATTISTIC DATA
|
||||||
*/
|
*/
|
||||||
@@ -207,10 +205,6 @@ class LoadEvents
|
|||||||
'fill' => true,
|
'fill' => true,
|
||||||
'tension' => 0.5,
|
'tension' => 0.5,
|
||||||
'borderColor' => '#36A2EB',
|
'borderColor' => '#36A2EB',
|
||||||
'datalabels' => [
|
|
||||||
'align' => 'start',
|
|
||||||
'anchor' => 'start',
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'labels' => $labels,
|
'labels' => $labels,
|
||||||
|
|||||||
Reference in new issue
Block a user