From 0f547a532cf68d684bf4d76f153641e410f1f325 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 4 Jul 2017 20:35:18 +0200 Subject: [PATCH] Rename row 'x' to 'date', swap expenses and revenues. --- src/operations/balance-chart.component.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operations/balance-chart.component.js b/src/operations/balance-chart.component.js index 2a08917..836f140 100644 --- a/src/operations/balance-chart.component.js +++ b/src/operations/balance-chart.component.js @@ -42,14 +42,14 @@ var balanceChartModule = angular.module('balanceChartModule', [ Balances.query({ id: $routeParams.accountId }, function(results) { - var headers = [['x', 'balances', 'expenses', 'revenues']]; + var headers = [['date', 'balances', 'expenses', 'revenues']]; var rows = results.map(function(result) { return [ result.operation_date, result.balance, - result.revenues, - result.expenses + result.expenses, + result.revenues ]; }); @@ -71,7 +71,7 @@ var balanceChartModule = angular.module('balanceChartModule', [ height: 500, }, data: { - x: 'x', + x: 'date', rows: [], axes: { expenses: 'y2',