Cleanup, separate axis for expenses and revenues.

This commit is contained in:
Alexis Lahouze 2018-06-10 11:18:59 +02:00
parent 4d9faf7406
commit c617cf2cab

View File

@ -42,14 +42,14 @@ export class BalanceChartComponent implements OnChanges {
dataField: 'operation_date', dataField: 'operation_date',
type: 'date', type: 'date',
baseUnit: 'day', baseUnit: 'day',
//unitInterval: 10,
rangeSelector: { rangeSelector: {
size: 80, size: 80,
padding: { /*left: 0, right: 0,*/top: 0, bottom: 0 }, padding: { /*left: 0, right: 0,*/top: 0, bottom: 0 },
backgroundColor: 'white', backgroundColor: 'white',
dataField: 'balance', dataField: 'balance',
baseUnit: 'month', //baseUnit: 'month',
baseUnit: 'day',
gridLines: { visible: false }, gridLines: { visible: false },
serieType: 'line', serieType: 'line',
//labels: { //labels: {
@ -62,6 +62,15 @@ export class BalanceChartComponent implements OnChanges {
public seriesGroups: any = [{ public seriesGroups: any = [{
type: 'stackedcolumn', type: 'stackedcolumn',
valueAxis: {
title: { text: 'Expenses/revenues' },
position: 'right',
visible: true,
gridLines: { visible: false },
labels: {
horizontalAlignment: 'left'
}
},
series: [{ series: [{
dataField: 'expenses', dataField: 'expenses',
fillColor: 'red' fillColor: 'red'