4👍
The problem has more to do with the really long x axis labels than the responsiveness. That said, setting maintainAspectRatio
will solve your problem.
Chart.defaults.global.maintainAspectRatio = false;
Note that you can do this per chart too.
If you want to maintain the aspect ratio too, you can extend the chart to trim the labels like in https://stackoverflow.com/a/31699438/360067
- [Chartjs]-Chartjs Line chart: scale respect value on x-axis
- [Chartjs]-Chart.js v2 is there a way to draw bar chart horizontally?
Source:stackexchange.com