mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Should not have edited that code. #133
This commit is contained in:
@@ -129,8 +129,10 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
|
|||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
$array = [
|
$array = [
|
||||||
'label' => $entry[0]->formatLocalized($format),
|
'label' => $entry[0]->formatLocalized($format),
|
||||||
'data' => array_shift($entry),
|
'data' => [],
|
||||||
];
|
];
|
||||||
|
array_shift($entry);
|
||||||
|
$array['data'] = $entry;
|
||||||
$data['datasets'][] = $array;
|
$data['datasets'][] = $array;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user