25 lines
388 B
PHP
25 lines
388 B
PHP
<?php
|
|
|
|
namespace App\Filament\Widgets;
|
|
|
|
use Filament\Widgets\ChartWidget;
|
|
|
|
class MovingAverageChart extends ChartWidget
|
|
{
|
|
public ?array $filters = [];
|
|
|
|
public ?string $header;
|
|
|
|
protected function getData(): array
|
|
{
|
|
$this->heading = $this->header;
|
|
|
|
return $this->filters;
|
|
}
|
|
|
|
protected function getType(): string
|
|
{
|
|
return 'line';
|
|
}
|
|
}
|