New budget charts for year report.

This commit is contained in:
James Cole
2015-01-24 08:54:33 +01:00
parent f231263085
commit 83f5b5e293
5 changed files with 34 additions and 19 deletions

View File

@@ -3,5 +3,11 @@ if (typeof(google) != 'undefined') {
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);
});
}
}