0👍
You could try to set the barPercentage
and categoryPercentage
properties on the y-axis options. More info here.
scales: {
yAxes: [{
beginAtZero: true,
fontSize: 20,
display: true,
barThickness: 8,
categoryPercentage: 1,
barPercentage: 1
}],
...
Values of 1 and 1 would remove all the space. Play around with it to achieve an optimum for your requirement.
- Chartjs-Loading json file to create chart
- Chartjs-How I can change the font-family of labels in the bar chart?
Source:stackexchange.com