mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 14:26:58 +00:00
13 lines
529 B
JavaScript
13 lines
529 B
JavaScript
if (typeof(google) != 'undefined') {
|
|
google.setOnLoadCallback(drawChart);
|
|
function drawChart() {
|
|
googleColumnChart('chart/reports/income-expenses/' + year, 'income-expenses-chart');
|
|
googleColumnChart('chart/reports/income-expenses-sum/' + year, 'income-expenses-sum-chart')
|
|
|
|
$.each($('.budgets'), function (i, v) {
|
|
var holder = $(v);
|
|
var id = holder.data('id');
|
|
googleColumnChart('chart/budget/' + id + '/spending/' + year, 'budgets-' + id);
|
|
});
|
|
}
|
|
} |