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.
Hi @winklerrr you also need to change the color of the polar axes:
fig.update_polars(bgcolor='black')
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?
Thanks
Hi,
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.
fig.update_layout(
template=None,
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)")
or
fig.update_layout(polar_angularaxis_gridcolor="black")
As for changing the linestyle, I havenβt found a a way to achieve that either.
Sources: