Fixes labelling for charts

This commit is contained in:
GabrielMeyer 2020-02-04 11:19:11 +01:00 committed by FinnStutzenstein
parent 294b75c320
commit 6c1317e25f
1 changed files with 1 additions and 4 deletions

View File

@ -199,7 +199,7 @@ export class ChartsComponent extends BaseViewComponent {
labels: {}
},
scales: {
xAxes: [{ ticks: { beginAtZero: true } }],
xAxes: [{ ticks: { beginAtZero: true, stepSize: 1 } }],
yAxes: [{ ticks: { beginAtZero: true } }]
},
plugins: {
@ -291,9 +291,6 @@ export class ChartsComponent extends BaseViewComponent {
this.setupBar();
type = 'horizontalBar';
}
// if (type === 'bar' || type === 'horizontalBar') {
// this.setupBar();
// }
this._type = type;
}
}