mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Update chart to include time.
This commit is contained in:
@@ -108,8 +108,8 @@ class AccountController extends Controller
|
|||||||
'currency_code' => $currency->code,
|
'currency_code' => $currency->code,
|
||||||
'currency_symbol' => $currency->symbol,
|
'currency_symbol' => $currency->symbol,
|
||||||
'currency_decimal_places' => $currency->decimal_places,
|
'currency_decimal_places' => $currency->decimal_places,
|
||||||
'start_date' => $start->format('Y-m-d'),
|
'start_date' => $start->toAtomString(),
|
||||||
'end_date' => $end->format('Y-m-d'),
|
'end_date' => $end->toAtomString(),
|
||||||
'type' => 'line', // line, area or bar
|
'type' => 'line', // line, area or bar
|
||||||
'yAxisID' => 0, // 0, 1, 2
|
'yAxisID' => 0, // 0, 1, 2
|
||||||
'entries' => [],
|
'entries' => [],
|
||||||
@@ -120,7 +120,7 @@ class AccountController extends Controller
|
|||||||
$previous = round((float)array_values($range)[0], 12);
|
$previous = round((float)array_values($range)[0], 12);
|
||||||
while ($currentStart <= $end) {
|
while ($currentStart <= $end) {
|
||||||
$format = $currentStart->format('Y-m-d');
|
$format = $currentStart->format('Y-m-d');
|
||||||
$label = $currentStart->format('Y-m-d');
|
$label = $currentStart->toAtomString();
|
||||||
$balance = array_key_exists($format, $range) ? round((float)$range[$format], 12) : $previous;
|
$balance = array_key_exists($format, $range) ? round((float)$range[$format], 12) : $previous;
|
||||||
$previous = $balance;
|
$previous = $balance;
|
||||||
$currentStart->addDay();
|
$currentStart->addDay();
|
||||||
|
Reference in New Issue
Block a user