Trying to fix chart.

This commit is contained in:
James Cole
2015-09-29 09:28:16 +02:00
parent 103de5e18a
commit da50f9e419
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class ChartJsReportChartGenerator implements ReportChartGenerator
foreach ($entries as $entry) {
$data['labels'][] = $entry[0]->formatLocalized($format);
$data['datasets'][0]['data'][] = round($entry[1], 2);
$data['datasets'][1]['data'][] = round(($entry[2] * -1), 2);
$data['datasets'][1]['data'][] = round($entry[2], 2);
}
return $data;