2👍
in options try adding maintainAspectRatio: false,
so that it does not try and keep a nice square which pushes the actual chart to a small size due to the large amount of labels.
options: {
maintainAspectRatio: false,
scale: {
reverse: false,
ticks: {
min: 20,
max: 90
}
}
}
- [Chartjs]-TypeError: Cannot read property 'defaults' of undefined when using the react wrapper of chartjs
- [Chartjs]-Chart.js repeating colors?
Source:stackexchange.com