How to change the background color for Bar Polar charts?

How can I change the background color for Bar Polar charts?
I tried setting plot_bgcolor=rgb(70,70,70) in the layout element but nothing changed.

1 Like

Hi @winklerrr you also need to change the color of the polar axes:

1 Like

As a follow up to the previous question:
I would like to have a fully transparent background, but the radial axes set to black and dashed lines. Is it possible?



This reply is probably coming very late. I was struggling with the same issue. So far I found out that you can make the background of a polar transparent if you pass an opacity value, by using RGBA. e.g. β€œrgba(255, 255, 255, 0.2)” - the 4th value being the opacity from 0.0 to 1.0. Although, this will change the opacity, the color of the axes have to be changed as well.

    polar = dict(bgcolor = "rgba(255, 255, 255, 0.2)", ...),

to render axis color transparent you can use thing like this in fig.update_layout

fig.update_layout(polar_angularaxis_gridcolor="rgb(0, 0, 0)")

As for changing the linestyle, I haven’t found a a way to achieve that either.