0👍
This is not supported “out of the box” by chart.js. You will need to determine what solution works best for you and implement it yourself. You will need to provide modified strings to the instantiation of myChart
.
You could automatically truncate a title after X number of characters, maybe add a ‘…’ to the end when it happens to make it obvious when a title has been shortened.
- Chartjs-Images in ChartJS CustomTooltips
- Chartjs-How to set a minimum width on the values in a doughnut chart?
Source:stackexchange.com