2016-11-02 20:08:11 +01:00
|
|
|
/* globals budgetMultiUrl, accountIds */
|
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
|
|
|
|
2016-11-02 20:08:11 +01:00
|
|
|
loadAjaxPartial('budgetMultiYear', budgetMultiUrl);
|
2015-06-27 16:00:50 +02: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:
|
2016-02-18 10:04:53 +01:00
|
|
|
lineChart('chart/report/net-worth/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'net-worth');
|
2015-12-14 21:12:10 +01:00
|
|
|
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');
|
2015-12-16 16:19:15 +01:00
|
|
|
}
|