From adb025c3084b85a781128d214f97fd4d213ae07d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 10 Jun 2018 14:51:05 +0200 Subject: [PATCH] Change disaply texts. --- src/operations/balanceChart.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/operations/balanceChart.component.ts b/src/operations/balanceChart.component.ts index 3c4e6a6..ccf7371 100644 --- a/src/operations/balanceChart.component.ts +++ b/src/operations/balanceChart.component.ts @@ -40,8 +40,9 @@ export class BalanceChartComponent implements OnChanges { public data; public xAxis: any = { - dataField: 'operation_date', type: 'date', + dataField: 'operation_date', + displayText: 'Date', baseUnit: 'day', rangeSelector: { @@ -80,15 +81,18 @@ export class BalanceChartComponent implements OnChanges { }, series: [{ dataField: 'expenses', + displayText: 'Expenses', fillColor: 'red' }, { dataField: 'revenues', + displayText: 'Revenues', fillColor: 'green' }] }, { type: 'line', series: [{ dataField: 'balance', + displayText: 'Balance', fillColor: 'blue' }], bands: [{