mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Experimental chart [skip ci]
This commit is contained in:
parent
0a7a691c95
commit
aca2973aef
@ -184,18 +184,20 @@ class GoogleChartController extends Controller
|
|||||||
$allEntries->push(['(no budget)', 0, 0, $noBudgetExpenses]);
|
$allEntries->push(['(no budget)', 0, 0, $noBudgetExpenses]);
|
||||||
|
|
||||||
foreach ($allEntries as $entry) {
|
foreach ($allEntries as $entry) {
|
||||||
$chart->addRow($entry[0], $entry[1], $entry[2], $entry[3]);
|
if ($entry[1] != 0 || $entry[2] != 0 || $entry[3] != 0) {
|
||||||
// if ($entry[2] > 0) {
|
$chart->addRow($entry[0], $entry[1], $entry[2], $entry[3]);
|
||||||
// $left = $entry[1] - $entry[2];
|
}
|
||||||
// if ($left > 0) {
|
// if ($entry[2] > 0) {
|
||||||
// $chart->addRow($entry[0], $left, null);
|
// $left = $entry[1] - $entry[2];
|
||||||
// } else {
|
// if ($left > 0) {
|
||||||
// if ($left < 0) {
|
// $chart->addRow($entry[0], $left, null);
|
||||||
// $chart->addRow($entry[0], null, $left);
|
// } else {
|
||||||
// }
|
// if ($left < 0) {
|
||||||
// }
|
// $chart->addRow($entry[0], null, $left);
|
||||||
//
|
// }
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
$chart->generate();
|
$chart->generate();
|
||||||
|
Loading…
Reference in New Issue
Block a user