diff --git a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php index 75347ee8a4..8cd3c3dac0 100644 --- a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php +++ b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php @@ -84,7 +84,7 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator $data['labels'][] = $entry[0]; $left[] = round($entry[1], 2); $spent[] = round($entry[2], 2); - $overspent[] = round($entry[3], 2); + $overspent[] = round(($entry[3] * -1), 2); } } @@ -98,7 +98,7 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator ]; $data['datasets'][] = [ 'label' => trans('firefly.overspent'), - 'data' => $overspent * -1, + 'data' => $overspent, ]; $data['count'] = count($data['datasets']);