How make label text vertical in plotly.express.choropleth_mapbox?

Could you please help me with advice on how to make label text vertically? And my choropleth_mapbox graph will not change width when the label is too long.
image

HI @Ruslan welcome to the forums.

Take a look at this example on how to show a vertical colorbar title:

I found out fig.update_layout(coloraxis_colorbar_title_side="right"). But you help me too. Thanks.

1 Like

What helps me to understand how it works. https://plotly.com/python/creating-and-updating-figures/#magic-underscore-notation