This commit is contained in:
salam committed 2026-06-03 09:57:29 +02:00
1 parent 778504bdcc
commit 7cfb5df2a4
3 files changed
+2 -24

No files matched your search

-11
View File
@@ -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: {
-11
View File
@@ -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: {
+2 -2
View File
@@ -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',