diff --git a/app/Filament/Widgets/RecentJitterChart.php b/app/Filament/Widgets/RecentJitterChart.php index 407852a83..752c650cc 100644 --- a/app/Filament/Widgets/RecentJitterChart.php +++ b/app/Filament/Widgets/RecentJitterChart.php @@ -52,18 +52,27 @@ protected function getData(): array 'data' => $results->map(fn ($item) => $item->getJitterData()['download']), 'borderColor' => '#0ea5e9', 'backgroundColor' => '#0ea5e9', + 'fill' => false, + 'cubicInterpolationMode' => 'monotone', + 'tension' => 0.4, ], [ 'label' => 'Upload', 'data' => $results->map(fn ($item) => $item->getJitterData()['upload']), 'borderColor' => '#8b5cf6', 'backgroundColor' => '#8b5cf6', + 'fill' => false, + 'cubicInterpolationMode' => 'monotone', + 'tension' => 0.4, ], [ 'label' => 'Ping', 'data' => $results->map(fn ($item) => $item->getJitterData()['ping']), 'borderColor' => '#10b981', 'backgroundColor' => '#10b981', + 'fill' => false, + 'cubicInterpolationMode' => 'monotone', + 'tension' => 0.4, ], ], 'labels' => $results->map(fn ($item) => $item->created_at->timezone($settings->timezone)->format('M d - G:i')), diff --git a/app/Filament/Widgets/RecentPingChart.php b/app/Filament/Widgets/RecentPingChart.php index 6e3567948..6a71971c3 100644 --- a/app/Filament/Widgets/RecentPingChart.php +++ b/app/Filament/Widgets/RecentPingChart.php @@ -52,6 +52,9 @@ protected function getData(): array 'data' => $results->map(fn ($item) => $item->ping), 'borderColor' => '#10b981', 'backgroundColor' => '#10b981', + 'fill' => false, + 'cubicInterpolationMode' => 'monotone', + 'tension' => 0.4, ], ], 'labels' => $results->map(fn ($item) => $item->created_at->timezone($settings->timezone)->format('M d - G:i')), diff --git a/app/Filament/Widgets/RecentSpeedChart.php b/app/Filament/Widgets/RecentSpeedChart.php index 88d1b3c72..bc43e8fb8 100644 --- a/app/Filament/Widgets/RecentSpeedChart.php +++ b/app/Filament/Widgets/RecentSpeedChart.php @@ -52,12 +52,18 @@ protected function getData(): array 'data' => $results->map(fn ($item) => formatBits(formatBytesToBits($item->download), 2, false)), 'borderColor' => '#0ea5e9', 'backgroundColor' => '#0ea5e9', + 'fill' => false, + 'cubicInterpolationMode' => 'monotone', + 'tension' => 0.4, ], [ 'label' => 'Upload', 'data' => $results->map(fn ($item) => formatBits(formatBytesToBits($item->upload), 2, false)), 'borderColor' => '#8b5cf6', 'backgroundColor' => '#8b5cf6', + 'fill' => false, + 'cubicInterpolationMode' => 'monotone', + 'tension' => 0.4, ], ], 'labels' => $results->map(fn ($item) => $item->created_at->timezone($settings->timezone)->format('M d - G:i')),