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); }