Limit the width of the legend texts

Here’s an example:
https://fiddle.jshell.net/7mrwjafn/show/light/

As you can see, one of the labels is very long, which makes the chart unusable.
I’d like to have a way to set the maximum size of the legend, probably in pixels.
I could truncate the texts in Javascript, but the effect will be length-wise truncation, unlike pixel-wise truncation.
Perhaps a nice effect, such as fading ellipsis, could be added.

Author: Fantashit

1 thought on “Limit the width of the legend texts

Comments are closed.