I am trying to display the labels on the x-axis of a barchart vertically in order to fit all labels onto the graph. I read in another question that the way to do this is to set the max and min rotation to 90. Even though I set the min/max rotation in options the labels still get displayed at an angle... Any idea what i'm missing/doing wrong here?
my options code:
options:any = {
scaleShowVerticalLines: false,
scaleShowValues: true,
scales: {
yAxis: [{
ticks: {
beginAtZero: true
}
}],
xAxis: [{
stacked: false,
scaleLabel: {
labelString: 'Date'
},
ticks: {
stepSize: 1,
min: 0,
maxRotation: 90,
minRotation: 90,
autoSkip: false
}
}]
},
responsive: true
};
Screenshot of my bar chart: