mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-08 03:21:20 +00:00
Some more work done. Mainly accounts. [skip ci]
This commit is contained in:
@@ -208,8 +208,11 @@ class ChartController extends BaseController
|
||||
foreach ($budget->limits as $limit) {
|
||||
foreach ($limit->limitrepetitions as $rep) {
|
||||
//0: envelope for period:
|
||||
$data['series'][0]['data'][] = floatval($rep->amount);
|
||||
$data['series'][1]['data'][] = $rep->spent;
|
||||
$amount = floatval($rep->amount);
|
||||
$spent = $rep->spent;
|
||||
$color = $spent > $amount ? '#FF0000' : null;
|
||||
$data['series'][0]['data'][] = $amount;
|
||||
$data['series'][1]['data'][] = ['y' => $rep->spent, 'color' => $color];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user