Formats and colors.

This commit is contained in:
Alexis Lahouze 2018-06-10 15:42:29 +02:00
parent 94e103b365
commit e9cc86d064
1 changed files with 19 additions and 5 deletions

View File

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