mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
Better fix.
This commit is contained in:
parent
e54a56d3a8
commit
930d5ab941
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user