Skip to content

Commit

Permalink
[Bug] Fixed high ping values not showing in charts (#1827)
Browse files Browse the repository at this point in the history
fixed high ping values not showing in charts
  • Loading branch information
alexjustesen authored Nov 25, 2024
1 parent 6b06eff commit e1c605e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Filament/Widgets/RecentPingChartWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -67,6 +67,11 @@ protected function getData(): array
protected function getOptions(): array
{
return [
'plugins' => [
'legend' => [
'display' => false,
],
],
'scales' => [
'y' => [
'beginAtZero' => true,
Expand Down

0 comments on commit e1c605e

Please sign in to comment.