wip
This commit is contained in:
1 parent
778504bdcc
commit
7cfb5df2a4
3 files changed
+2
-24
No files matched your search
@@ -71,17 +71,6 @@ class ChartPlayer extends ChartWidget
|
||||
interaction: {
|
||||
intersect: false,
|
||||
},
|
||||
plugins: {
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
afterLabel: (context) => {
|
||||
let event = context.dataset.events[context.dataIndex] || '';
|
||||
let date = context.dataset.dates[context.dataIndex] || '';
|
||||
return event+' '+ date;
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
title: {
|
||||
|
||||
@@ -74,17 +74,6 @@ class ChartPlayerMoAv extends ChartWidget
|
||||
interaction: {
|
||||
intersect: false,
|
||||
},
|
||||
plugins: {
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
afterLabel: (context) => {
|
||||
let event = context.dataset.events[context.dataIndex] || '';
|
||||
let date = context.dataset.dates[context.dataIndex] || '';
|
||||
return event+' '+ date;
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
title: {
|
||||
|
||||
@@ -30,7 +30,7 @@ class LoadPlayer
|
||||
|
||||
$statistic_type = $filter['statistic_type'];
|
||||
|
||||
$team_position = $filter['team_position'];
|
||||
$statistic_name = HelperStatisticType::get($filter);
|
||||
|
||||
if (! $league_id) {
|
||||
return [];
|
||||
@@ -94,7 +94,7 @@ class LoadPlayer
|
||||
$data = [
|
||||
'datasets' => [
|
||||
[
|
||||
'label' => ucfirst($team_position),
|
||||
'label' => ucfirst($statistic_name),
|
||||
'data' => $datasets,
|
||||
'tension' => 0.5,
|
||||
'borderColor' => '#36A2EB',
|
||||
|
||||
Reference in new issue
Block a user