Chartjs-How can I keep label string length from affecting size of a Polar Area chart?

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.

Leave a comment