Cleanup, separate axis for expenses and revenues.
This commit is contained in:
parent
4d9faf7406
commit
c617cf2cab
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user