Rename row 'x' to 'date', swap expenses and revenues.
This commit is contained in:
parent
ab14ead2dc
commit
0f547a532c
@ -42,14 +42,14 @@ var balanceChartModule = angular.module('balanceChartModule', [
|
|||||||
Balances.query({
|
Balances.query({
|
||||||
id: $routeParams.accountId
|
id: $routeParams.accountId
|
||||||
}, function(results) {
|
}, function(results) {
|
||||||
var headers = [['x', 'balances', 'expenses', 'revenues']];
|
var headers = [['date', 'balances', 'expenses', 'revenues']];
|
||||||
|
|
||||||
var rows = results.map(function(result) {
|
var rows = results.map(function(result) {
|
||||||
return [
|
return [
|
||||||
result.operation_date,
|
result.operation_date,
|
||||||
result.balance,
|
result.balance,
|
||||||
result.revenues,
|
result.expenses,
|
||||||
result.expenses
|
result.revenues
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ var balanceChartModule = angular.module('balanceChartModule', [
|
|||||||
height: 500,
|
height: 500,
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
x: 'x',
|
x: 'date',
|
||||||
rows: [],
|
rows: [],
|
||||||
axes: {
|
axes: {
|
||||||
expenses: 'y2',
|
expenses: 'y2',
|
||||||
|
Loading…
Reference in New Issue
Block a user