From 3a3df3e089fb76b01b8846fe29a31c502c040fa0 Mon Sep 17 00:00:00 2001 From: salam Date: Sat, 23 May 2026 16:35:19 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/Data/HelperMoveingAverage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Widgets/Data/HelperMoveingAverage.php b/app/Filament/Widgets/Data/HelperMoveingAverage.php index a028eb17..c325d601 100644 --- a/app/Filament/Widgets/Data/HelperMoveingAverage.php +++ b/app/Filament/Widgets/Data/HelperMoveingAverage.php @@ -15,7 +15,7 @@ class HelperMoveingAverage $last = count($arr); foreach ($arr as $key => $value) { if ($key == 1) { - $new[] = round(($arr[0] + $value + $arr[2]) / 3, 3); + $new[] = round(($arr[0] + $value + $arr[2]) / 3, 1); } elseif ($key > 1 && $key < $last - 1) { $new[] = round(($arr[$key - 1] + $value + $arr[$key + 1]) / 3, 1); }