✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Truncated legend when setting plotly graph width


I want to add a plotly vertical barchart in my Dash app. Thing is, I have some quite long labels (y-labels), and I can’t manage to reduce the chart width without getting my labels truncated, which is problematic.

I tried to setup ‘automargin’ but it didn’t change anything.

Here’s a screen of a chart, I want to reduce its width, in keeping the integrity of the labels.

Can anyone provide some help ?