Chart was negative.

This commit is contained in:
James Cole 2015-09-27 09:52:02 +02:00
parent 9163fcfccb
commit 49d4705014

View File

@ -71,7 +71,7 @@ class ChartJsCategoryChartGenerator implements CategoryChartGenerator
foreach ($entries as $entry) {
if ($entry['sum'] != 0) {
$data['labels'][] = $entry['name'];
$data['datasets'][0]['data'][] = round($entry['sum'], 2);
$data['datasets'][0]['data'][] = round(($entry['sum'] * -1), 2);
}
}