Join two charts, simpler code.

This commit is contained in:
James Cole
2016-11-19 07:27:54 +01:00
parent 73f0cc705b
commit e15ea04186
12 changed files with 104 additions and 220 deletions

View File

@@ -5,7 +5,7 @@ $(function () {
"use strict";
drawChart();
loadAjaxPartial('budgetMultiYear', budgetMultiUri);
loadAjaxPartial('budgetPeriodReport', budgetPeriodReportUri);
});
function drawChart() {

View File

@@ -1,16 +1,16 @@
/* globals google, accountIds, budgetYearOverviewUri */
/* globals google, accountIds, budgetPeriodReportUri */
$(function () {
"use strict";
drawChart();
loadAjaxPartial('budgetOverview',budgetYearOverviewUri);
loadAjaxPartial('budgetPeriodReport', budgetPeriodReportUri);
});
function drawChart() {
"use strict";
lineChart('chart/report/net-worth/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds, 'net-worth');
lineChart('chart/report/net-worth/' + startDate + '/' + endDate + '/' + accountIds, 'net-worth');
columnChart('chart/report/in-out/' + startDate + '/' + endDate + '/' + accountIds, 'income-expenses-chart');
columnChart('chart/report/in-out-sum/' + startDate + '/' + endDate + '/' + accountIds, 'income-expenses-sum-chart');