This commit is contained in:
salam committed 2026-04-30 08:38:04 +02:00
1 parent fb8518597f
commit 90c3ad32cb
6 files changed
+399 -264

No files matched your search

+7 -10
View File
@@ -3,6 +3,7 @@
namespace App\Filament\Widgets;
// use App\Actions\Statistics\StatisticEvents;
use App\Actions\Statistics\LoadEvents;
use App\Actions\Statistics\StatisticType;
use Filament\Widgets\ChartWidget;
use Filament\Widgets\Concerns\InteractsWithPageFilters;
@@ -11,6 +12,11 @@ class PunctualChart extends ChartWidget
{
use InteractsWithPageFilters;
/**
* 1. Ein Diagramm, das die Werte des ausgewählten Feldes GRUPPE 2 (HEIM/AUSWÄRTS/VERANSTALTUNG) darstellt,
* mit dem Punktwert auf der Ordinate und dem aufsteigenden Datum auf der Abszisse,
* und das den Mittelwert und den Medianwert für die ausgewählte Statistik an den ausgewählten Daten enthält.
*/
protected ?string $pollingInterval = null;
public ?string $header;
@@ -24,16 +30,7 @@ class PunctualChart extends ChartWidget
{
$this->heading = StatisticType::get($this->filters);
$data = [
'datasets' => [
[
'label' => 'test',
'data' => [0, 10, 5, 2, 21, 32, 45, 74, 65, 45, 77, 89],
'backgroundColor' => '#36A2EB',
],
],
'labels' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
];
$data = LoadEvents::load($this->filters);
return $data;
}