✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Scatter Plot: How to wrap legends text when legend text is too long?

Hello, when legend text is too long in a chart the text goes above the actual chart or stretches it until it’s no longer visilbe.
Is there any way I could wrap text or shorten legends text so tha this won’t happen?

Adding <br>s to the trace name field should do the trick.

1 Like

Thanks @etienne for your help. Fortunately your workaround fixes this issue, but I thought that a better solution could be instead of breaking the label, is there a way to show fixed number of characters followed by … (ellipsis)??

Not at the moment, unfortunately.

Hi etienne,

Any possibility for the ellipsis to be implemented anytime soon? i think it’s an important functionality missing for pie-charts specially when the legend is too long?


Looking for an update on this issue.