mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
Chart was negative.
This commit is contained in:
parent
9163fcfccb
commit
49d4705014
@ -71,7 +71,7 @@ class ChartJsCategoryChartGenerator implements CategoryChartGenerator
|
|||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
if ($entry['sum'] != 0) {
|
if ($entry['sum'] != 0) {
|
||||||
$data['labels'][] = $entry['name'];
|
$data['labels'][] = $entry['name'];
|
||||||
$data['datasets'][0]['data'][] = round($entry['sum'], 2);
|
$data['datasets'][0]['data'][] = round(($entry['sum'] * -1), 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user