Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Plotly.toImage cut off Legend items

I created a chart and it looks like this in browser

But, when I generate image from it, some of legend items are cut off. I tried with different dimensions and both png / jpeg format but result is same. I also try to set different legent attributes (position, orientation, …)

            Plotly.toImage(this.element, { format: imageAttribute.format, width: imageAttribute.dimension.width, height: imageAttribute.dimension.height })
                .then(base64image => {

Can you share a reproducible example with data/layout?

Thank you etienne. I found the problem trying to create reproducible example :slight_smile:

What cause that strange behavior was this one line (including opensans fonts)