2015-12-12 17:51:07 +01:00
|
|
|
/* globals google, startDate ,reportURL, endDate , reportType ,accountIds , picker:true, minDate, expenseRestShow:true, incomeRestShow:true, year, month, hideTheRest, showTheRest, showTheRestExpense, hideTheRestExpense, columnChart, lineChart, stackedColumnChart */
|
2015-12-04 06:56:59 +01:00
|
|
|
|
2015-06-27 16:00:50 +02:00
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
"use strict";
|
2015-08-01 07:22:48 +02:00
|
|
|
drawChart();
|
2015-12-03 14:52:10 +01:00
|
|
|
|
2015-06-27 16:00:50 +02:00
|
|
|
});
|
2015-03-04 20:47:00 +01:00
|
|
|
|
2015-12-06 08:42:04 +01:00
|
|
|
|
2015-03-04 20:47:00 +01:00
|
|
|
|
2015-05-08 17:13:49 +02:00
|
|
|
function drawChart() {
|
2015-05-24 20:41:14 +02:00
|
|
|
"use strict";
|
2015-12-06 08:42:04 +01:00
|
|
|
|
2015-12-14 21:12:10 +01:00
|
|
|
// income and expense over multi year:
|
|
|
|
|
columnChart('chart/report/in-out/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'income-expenses-chart');
|
|
|
|
|
columnChart('chart/report/in-out-sum/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'income-expenses-sum-chart');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.each($('.account-chart'), function(i,v) {
|
|
|
|
|
var holder = $(v);
|
|
|
|
|
console.log(holder.data('id'));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
2015-12-03 14:52:10 +01:00
|
|
|
}
|