0👍
What you are doing in your options should work in v3, the axis: 'y'
is no option for chart.js, since it doesnt work for you I assume you are using version 2 of the lib in which case you have to change your type
from bar
to horizontalBar
- Chartjs-How to show all dates on xAxis between two dates in chart.js
- Chartjs-Chart.js dynamically add y axes from json
Source:stackexchange.com