Skip to content

Firefly III: a personal finances manager

Should not have edited that code. #133

James Cole8bab9e84e258
diff --git a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php
index ea808d30c6..42608e027d 100644
--- a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php
+++ b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php
@@ -129,8 +129,10 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
foreach ($entries as $entry) {
$array = [
'label' => $entry[0]->formatLocalized($format),
- 'data' => array_shift($entry),
+ 'data' => [],
];
+ array_shift($entry);
+ $array['data'] = $entry;
$data['datasets'][] = $array;
}