First attempt at multi-year budget chart.

This commit is contained in:
James Cole
2015-12-16 10:17:15 +01:00
parent 69553b138b
commit 838330b909
4 changed files with 71 additions and 2 deletions

View File

@@ -39,6 +39,9 @@ function updateBudgetChart(e) {
});
var budgetIds = budgets.join(',');
// remove old chart:
$('#budgets-chart').replaceWith('<canvas id="budgets-chart" class="budgets-chart" style="width:100%;height:400px;"></canvas>');
// draw chart. Redraw when exists? Not sure if we support that.
columnChart('chart/budget/multi-year/' + reportType + '/' + startDate + '/' + endDate + '/' + accountIds + '/' + budgetIds, 'budgets-chart');