Update chart to show sum

This commit is contained in:
James Cole
2016-12-23 07:20:47 +01:00
parent bf0744e03a
commit 1f1334a1fc
4 changed files with 60 additions and 9 deletions

View File

@@ -125,9 +125,9 @@ function doubleYChart(URI, container) {
];
options.stacked = true;
options.scales.xAxes[0].stacked = true;
console.log(options);
// console.log(options);
var chartType = 'line';
var chartType = 'bar';
drawAChart(URI, container, chartType, options, colorData);
}

View File

@@ -36,7 +36,7 @@ function drawChart() {
"use strict";
// month view:
stackedColumnChart(mainUri, 'in-out-chart');
doubleYChart(mainUri, 'in-out-chart');
// draw pie chart of income, depending on "show other transactions too":
redrawPieChart('categories-in-pie-chart', categoryIncomeUri);