Skip to content

Commit 92024fd

Browse files
authored
[Bug] Added point background color (alexjustesen#1416)
1 parent ce21ae2 commit 92024fd

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

app/Filament/Widgets/RecentDownloadChartWidget.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ protected function getData(): array
5959
'data' => $results->map(fn ($item) => ! blank($item->download) ? Number::bitsToMagnitude(bits: $item->download_bits, precision: 2, magnitude: 'mbit') : 0),
6060
'borderColor' => '#0ea5e9',
6161
'backgroundColor' => '#0ea5e9',
62+
'pointBackgroundColor' => '#0ea5e9',
6263
'fill' => false,
6364
'cubicInterpolationMode' => 'monotone',
6465
'tension' => 0.4,

app/Filament/Widgets/RecentDownloadLatencyChartWidget.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected function getData(): array
5858
'data' => $results->map(fn ($item) => $item->download_latency_iqm ? number_format($item->download_latency_iqm, 2) : 0),
5959
'borderColor' => '#10b981',
6060
'backgroundColor' => '#10b981',
61+
'pointBackgroundColor' => '#10b981',
6162
'fill' => false,
6263
'cubicInterpolationMode' => 'monotone',
6364
'tension' => 0.4,
@@ -67,6 +68,7 @@ protected function getData(): array
6768
'data' => $results->map(fn ($item) => $item->download_latency_high ? number_format($item->download_latency_high, 2) : 0),
6869
'borderColor' => '#0ea5e9',
6970
'backgroundColor' => '#0ea5e9',
71+
'pointBackgroundColor' => '#0ea5e9',
7072
'fill' => false,
7173
'cubicInterpolationMode' => 'monotone',
7274
'tension' => 0.4,
@@ -76,6 +78,7 @@ protected function getData(): array
7678
'data' => $results->map(fn ($item) => $item->download_latency_low ? number_format($item->download_latency_low, 2) : 0),
7779
'borderColor' => '#8b5cf6',
7880
'backgroundColor' => '#8b5cf6',
81+
'pointBackgroundColor' => '#8b5cf6',
7982
'fill' => false,
8083
'cubicInterpolationMode' => 'monotone',
8184
'tension' => 0.4,

app/Filament/Widgets/RecentJitterChartWidget.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected function getData(): array
5858
'data' => $results->map(fn ($item) => $item->download_jitter ? number_format($item->download_jitter, 2) : 0),
5959
'borderColor' => '#0ea5e9',
6060
'backgroundColor' => '#0ea5e9',
61+
'pointBackgroundColor' => '#0ea5e9',
6162
'fill' => false,
6263
'cubicInterpolationMode' => 'monotone',
6364
'tension' => 0.4,
@@ -67,6 +68,7 @@ protected function getData(): array
6768
'data' => $results->map(fn ($item) => $item->upload_jitter ? number_format($item->upload_jitter, 2) : 0),
6869
'borderColor' => '#8b5cf6',
6970
'backgroundColor' => '#8b5cf6',
71+
'pointBackgroundColor' => '#8b5cf6',
7072
'fill' => false,
7173
'cubicInterpolationMode' => 'monotone',
7274
'tension' => 0.4,
@@ -76,6 +78,7 @@ protected function getData(): array
7678
'data' => $results->map(fn ($item) => $item->ping_jitter ? number_format($item->ping_jitter, 2) : 0),
7779
'borderColor' => '#10b981',
7880
'backgroundColor' => '#10b981',
81+
'pointBackgroundColor' => '#10b981',
7982
'fill' => false,
8083
'cubicInterpolationMode' => 'monotone',
8184
'tension' => 0.4,

app/Filament/Widgets/RecentPingChartWidget.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected function getData(): array
5858
'data' => $results->map(fn ($item) => ! blank($item->ping) ? number_format($item->ping, 2) : 0),
5959
'borderColor' => '#10b981',
6060
'backgroundColor' => '#10b981',
61+
'pointBackgroundColor' => '#10b981',
6162
'fill' => false,
6263
'cubicInterpolationMode' => 'monotone',
6364
'tension' => 0.4,

app/Filament/Widgets/RecentUploadChartWidget.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ protected function getData(): array
5959
'data' => $results->map(fn ($item) => ! blank($item->upload) ? Number::bitsToMagnitude(bits: $item->upload_bits, precision: 2, magnitude: 'mbit') : 0),
6060
'borderColor' => '#8b5cf6',
6161
'backgroundColor' => '#8b5cf6',
62+
'pointBackgroundColor' => '#8b5cf6',
6263
'fill' => false,
6364
'cubicInterpolationMode' => 'monotone',
6465
'tension' => 0.4,

app/Filament/Widgets/RecentUploadLatencyChartWidget.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected function getData(): array
5858
'data' => $results->map(fn ($item) => $item->upload_latency_iqm ? number_format($item->upload_latency_iqm, 2) : 0),
5959
'borderColor' => '#10b981',
6060
'backgroundColor' => '#10b981',
61+
'pointBackgroundColor' => '#10b981',
6162
'fill' => false,
6263
'cubicInterpolationMode' => 'monotone',
6364
'tension' => 0.4,
@@ -67,6 +68,7 @@ protected function getData(): array
6768
'data' => $results->map(fn ($item) => $item->upload_latency_high ? number_format($item->upload_latency_high, 2) : 0),
6869
'borderColor' => '#0ea5e9',
6970
'backgroundColor' => '#0ea5e9',
71+
'pointBackgroundColor' => '#0ea5e9',
7072
'fill' => false,
7173
'cubicInterpolationMode' => 'monotone',
7274
'tension' => 0.4,
@@ -76,6 +78,7 @@ protected function getData(): array
7678
'data' => $results->map(fn ($item) => $item->upload_latency_low ? number_format($item->upload_latency_low, 2) : 0),
7779
'borderColor' => '#8b5cf6',
7880
'backgroundColor' => '#8b5cf6',
81+
'pointBackgroundColor' => '#8b5cf6',
7982
'fill' => false,
8083
'cubicInterpolationMode' => 'monotone',
8184
'tension' => 0.4,

0 commit comments

Comments
 (0)