Formats and colors.

This commit is contained in:
Alexis Lahouze 2018-06-10 15:42:29 +02:00
parent 94e103b365
commit e9cc86d064

View File

@ -81,24 +81,38 @@ export class BalanceChartComponent implements OnChanges {
visible: true, visible: true,
gridLines: { visible: false }, gridLines: { visible: false },
labels: { labels: {
horizontalAlignment: 'left' horizontalAlignment: 'left',
formatSettings: {
sufix: '€',
decimalPlaces: 2
},
} }
}, },
series: [{ series: [{
dataField: 'expenses', dataField: 'expenses',
displayText: 'Expenses', displayText: 'Expenses',
fillColor: 'red' fillColor: 'tomato'
}, { }, {
dataField: 'revenues', dataField: 'revenues',
displayText: 'Revenues', displayText: 'Revenues',
fillColor: 'green' fillColor: 'yellowgreen'
}] }]
}, { }, {
type: 'line', type: 'stepline',
valueAxis: {
title: { text: 'Balance' },
//gridLines: { visible: false },
labels: {
formatSettings: {
sufix: '€',
decimalPlaces: 2
}
}
},
series: [{ series: [{
dataField: 'balance', dataField: 'balance',
displayText: 'Balance', displayText: 'Balance',
fillColor: 'blue' fillColor: 'steelblue'
}], }],
bands: [{ bands: [{
minValue: 0, maxValue: 0, fillColor: 'orange', lineWidth: 1 minValue: 0, maxValue: 0, fillColor: 'orange', lineWidth: 1