Skip to content

Commit e1c605e

Browse files
authored
[Bug] Fixed high ping values not showing in charts (alexjustesen#1827)
fixed high ping values not showing in charts
1 parent 6b06eff commit e1c605e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/Filament/Widgets/RecentPingChartWidget.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function getData(): array
5151
'datasets' => [
5252
[
5353
'label' => 'Ping (ms)',
54-
'data' => $results->map(fn ($item) => ! blank($item->ping) ? number_format($item->ping, 2) : 0),
54+
'data' => $results->map(fn ($item) => $item->ping),
5555
'borderColor' => '#10b981',
5656
'backgroundColor' => '#10b981',
5757
'pointBackgroundColor' => '#10b981',
@@ -67,6 +67,11 @@ protected function getData(): array
6767
protected function getOptions(): array
6868
{
6969
return [
70+
'plugins' => [
71+
'legend' => [
72+
'display' => false,
73+
],
74+
],
7075
'scales' => [
7176
'y' => [
7277
'beginAtZero' => true,

0 commit comments

Comments
 (0)