Better fix.

This commit is contained in:
James Cole 2015-10-17 21:15:16 +02:00
parent e54a56d3a8
commit 930d5ab941

View File

@ -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']);