1👍
✅
Since indexAxis: 'y'
is not working for you, it seems you are using V2 of chart.js in this case you need to specify the type as 'horizontalBar'
instead of 'bar'
Source:stackexchange.com