Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Do not round pie chart values. #506
James Cole9ec3febbfa3e
diff --git a/app/Generator/Chart/Basic/ChartJsGenerator.php b/app/Generator/Chart/Basic/ChartJsGenerator.phpindex 3f5eb8145c..6e21f8ad74 100644--- a/app/Generator/Chart/Basic/ChartJsGenerator.php+++ b/app/Generator/Chart/Basic/ChartJsGenerator.php@@ -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++;