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: {
|
interaction: {
|
||||||
intersect: false,
|
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: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
title: {
|
title: {
|
||||||
|
|||||||
@@ -74,17 +74,6 @@ class ChartPlayerMoAv extends ChartWidget
|
|||||||
interaction: {
|
interaction: {
|
||||||
intersect: false,
|
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: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
title: {
|
title: {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class LoadPlayer
|
|||||||
|
|
||||||
$statistic_type = $filter['statistic_type'];
|
$statistic_type = $filter['statistic_type'];
|
||||||
|
|
||||||
$team_position = $filter['team_position'];
|
$statistic_name = HelperStatisticType::get($filter);
|
||||||
|
|
||||||
if (! $league_id) {
|
if (! $league_id) {
|
||||||
return [];
|
return [];
|
||||||
@@ -94,7 +94,7 @@ class LoadPlayer
|
|||||||
$data = [
|
$data = [
|
||||||
'datasets' => [
|
'datasets' => [
|
||||||
[
|
[
|
||||||
'label' => ucfirst($team_position),
|
'label' => ucfirst($statistic_name),
|
||||||
'data' => $datasets,
|
'data' => $datasets,
|
||||||
'tension' => 0.5,
|
'tension' => 0.5,
|
||||||
'borderColor' => '#36A2EB',
|
'borderColor' => '#36A2EB',
|
||||||
|
|||||||
Reference in new issue
Block a user