diff --git a/app/Filament/Widgets/RecentPingChartWidget.php b/app/Filament/Widgets/RecentPingChartWidget.php index 57a10eee5..f0b9781f7 100644 --- a/app/Filament/Widgets/RecentPingChartWidget.php +++ b/app/Filament/Widgets/RecentPingChartWidget.php @@ -51,7 +51,7 @@ protected function getData(): array 'datasets' => [ [ 'label' => 'Ping (ms)', - 'data' => $results->map(fn ($item) => ! blank($item->ping) ? number_format($item->ping, 2) : 0), + 'data' => $results->map(fn ($item) => $item->ping), 'borderColor' => '#10b981', 'backgroundColor' => '#10b981', 'pointBackgroundColor' => '#10b981', @@ -67,6 +67,11 @@ protected function getData(): array protected function getOptions(): array { return [ + 'plugins' => [ + 'legend' => [ + 'display' => false, + ], + ], 'scales' => [ 'y' => [ 'beginAtZero' => true,