mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Spent should not be negative for the chart.
This commit is contained in:
parent
45293fbd42
commit
0bde72d3df
@ -48,7 +48,7 @@ class ChartJsCategoryChartGenerator implements CategoryChartGenerator
|
||||
$spent = round($entry[1], 2);
|
||||
$earned = round($entry[2], 2);
|
||||
|
||||
$data['datasets'][0]['data'][] = $spent == 0 ? null : $spent;
|
||||
$data['datasets'][0]['data'][] = $spent == 0 ? null : $spent * -1;
|
||||
$data['datasets'][1]['data'][] = $earned == 0 ? null : $earned;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user