This commit is contained in:
salam committed 2026-05-27 12:06:41 +02:00
1 parent 3010d34353
commit adcac05883
4 files changed
+9 -9

No files matched your search

@@ -30,6 +30,11 @@ class ChartMovingAverageEvent extends ChartWidget
return $data;
}
public function getDescription(): ?string
{
return 'Moving Average';
}
protected function getType(): string
{
return 'line';
@@ -34,7 +34,7 @@ class ChartMovingAveragePlayer extends ChartWidget
public function getDescription(): ?string
{
return 'Player Moving Average';
return 'Moving Average';
}
protected function getData(): array
@@ -43,7 +43,7 @@ class ChartMovingAveragePlayer extends ChartWidget
return [];
}
$this->heading = HelperStatisticType::get($this->filters);
$this->heading = 'Player '.HelperStatisticType::get($this->filters);
$data = LoadPlayer::load($this->filters);
+1 -1
View File
@@ -21,7 +21,7 @@ class ChartPunctualEvent extends ChartWidget
$data = LoadEvents::load($this->filters);
if (isset($data['description'])) {
$this->description = 'Punctual '.$data['description'];
$this->description = $data['description'];
}
return $data;
+1 -6
View File
@@ -31,18 +31,13 @@ class ChartPunctualPlayer extends ChartWidget
],
];
public function getDescription(): ?string
{
return 'Player Punctual';
}
protected function getData(): array
{
if ($this->filters['statistic_type'] == 'crn') {
return [];
}
$this->heading = HelperStatisticType::get($this->filters);
$this->heading = 'Player '.HelperStatisticType::get($this->filters);
$data = LoadPlayer::load($this->filters);