Wrap text in Title

Hi

Is there a way to wrap the text in the title. It looks wrapped when viewing on line, but when we export it is one continuous line, which makes the exported graph image wider than it needs to be.

Thanks

Dave

plotly.js does not wrap long strings at the moment.

It is up to the users to provide their own <br> in the strings.

Has there been any change on this? I am working with responsive plots and in need to have plot titles wrap when the container is smaller than the title width. I think it would be nice to have independent margins for the plot title to force it wrap before it gets close to the plot canvas edges.

1 Like

Nop.

You can subscribe to Unification of text rendering and wrapping · Issue #2053 · plotly/plotly.js · GitHub for the latest development info.