This commit is contained in:
salam committed 2026-05-27 12:28:23 +02:00
1 parent adcac05883
commit 0e35baca70
4 files changed
+23 -15

No files matched your search

@@ -17,24 +17,24 @@ class ChartMovingAverageEvent extends ChartWidget
protected function getData(): array
{
$this->heading = 'Events '.HelperStatisticType::get($this->filters);
$this->heading = 'Events';
$data = LoadEvents::load($this->filters);
if ($data) {
HelperMoveingAverage::get($data);
$this->description = HelperStatisticType::get($this->filters).' Moving Average';
$this->description = 'Moving Average '.$data['description'];
if ($data) {
if (isset($data['description'])) {
$this->description .= $data['description'];
}
HelperMoveingAverage::get($data);
}
return $data;
}
public function getDescription(): ?string
{
return 'Moving Average';
}
protected function getType(): string
{
return 'line';