Do not round pie chart values. #506

This commit is contained in:
James Cole 2016-12-30 12:00:37 +01:00
parent 1c5dc6ab6d
commit 9ec3febbfa
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -111,7 +111,7 @@ class ChartJsGenerator implements GeneratorInterface
$value = bcmul($value, '-1');
}
$chartData['datasets'][0]['data'][] = round($value, 2);
$chartData['datasets'][0]['data'][] = $value;
$chartData['datasets'][0]['backgroundColor'][] = ChartColour::getColour($index);
$chartData['labels'][] = $key;
$index++;