0👍
So basically the only way to prevent this is to dynamically create the tooltips. I initialize the labels to be something small, like “a”, then in the options parameter use the callbacks to generate the tooltip content. This way, the graph is originally rendered with short strings as labels (they won’t show) and you can generate longer labels/tooltips if needed.
- Chartjs-How to change bar color on a angular-chart and chart js bar graph with multiple datasets?
- Chartjs-Chart.JS Error: this.scale is undefined
Source:stackexchange.com