From c617cf2cab039555ef71ac1708b780d59b3909d1 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 10 Jun 2018 11:18:59 +0200 Subject: [PATCH] Cleanup, separate axis for expenses and revenues. --- src/operations/balanceChart.component.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/operations/balanceChart.component.ts b/src/operations/balanceChart.component.ts index f73ae89..c536cfb 100644 --- a/src/operations/balanceChart.component.ts +++ b/src/operations/balanceChart.component.ts @@ -42,14 +42,14 @@ export class BalanceChartComponent implements OnChanges { dataField: 'operation_date', type: 'date', baseUnit: 'day', - //unitInterval: 10, rangeSelector: { size: 80, padding: { /*left: 0, right: 0,*/top: 0, bottom: 0 }, backgroundColor: 'white', dataField: 'balance', - baseUnit: 'month', + //baseUnit: 'month', + baseUnit: 'day', gridLines: { visible: false }, serieType: 'line', //labels: { @@ -62,6 +62,15 @@ export class BalanceChartComponent implements OnChanges { public seriesGroups: any = [{ type: 'stackedcolumn', + valueAxis: { + title: { text: 'Expenses/revenues' }, + position: 'right', + visible: true, + gridLines: { visible: false }, + labels: { + horizontalAlignment: 'left' + } + }, series: [{ dataField: 'expenses', fillColor: 'red'