Skip to content

Commit c59da67

Browse files
committed
feat:[LAR-171] add option to display graph
1 parent c2be337 commit c59da67

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/Filament/Resources/UserResource/Widgets/UserChartWidget.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,15 @@ protected function getType(): string
7676
{
7777
return 'line';
7878
}
79+
80+
protected function getOptions(): array
81+
{
82+
return [
83+
'scales' => [
84+
'y' => [
85+
'beginAtZero' => true,
86+
],
87+
],
88+
];
89+
}
7990
}

0 commit comments

Comments
 (0)