Fixes labelling for charts
This commit is contained in:
parent
294b75c320
commit
6c1317e25f
@ -199,7 +199,7 @@ export class ChartsComponent extends BaseViewComponent {
|
|||||||
labels: {}
|
labels: {}
|
||||||
},
|
},
|
||||||
scales: {
|
scales: {
|
||||||
xAxes: [{ ticks: { beginAtZero: true } }],
|
xAxes: [{ ticks: { beginAtZero: true, stepSize: 1 } }],
|
||||||
yAxes: [{ ticks: { beginAtZero: true } }]
|
yAxes: [{ ticks: { beginAtZero: true } }]
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
@ -291,9 +291,6 @@ export class ChartsComponent extends BaseViewComponent {
|
|||||||
this.setupBar();
|
this.setupBar();
|
||||||
type = 'horizontalBar';
|
type = 'horizontalBar';
|
||||||
}
|
}
|
||||||
// if (type === 'bar' || type === 'horizontalBar') {
|
|
||||||
// this.setupBar();
|
|
||||||
// }
|
|
||||||
this._type = type;
|
this._type = type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user