Change disaply texts.

This commit is contained in:
Alexis Lahouze 2018-06-10 14:51:05 +02:00
parent 0efdbc5378
commit adb025c308

View File

@ -40,8 +40,9 @@ export class BalanceChartComponent implements OnChanges {
public data; public data;
public xAxis: any = { public xAxis: any = {
dataField: 'operation_date',
type: 'date', type: 'date',
dataField: 'operation_date',
displayText: 'Date',
baseUnit: 'day', baseUnit: 'day',
rangeSelector: { rangeSelector: {
@ -80,15 +81,18 @@ export class BalanceChartComponent implements OnChanges {
}, },
series: [{ series: [{
dataField: 'expenses', dataField: 'expenses',
displayText: 'Expenses',
fillColor: 'red' fillColor: 'red'
}, { }, {
dataField: 'revenues', dataField: 'revenues',
displayText: 'Revenues',
fillColor: 'green' fillColor: 'green'
}] }]
}, { }, {
type: 'line', type: 'line',
series: [{ series: [{
dataField: 'balance', dataField: 'balance',
displayText: 'Balance',
fillColor: 'blue' fillColor: 'blue'
}], }],
bands: [{ bands: [{