Hi guys,
Maybe I’m just dumb, but I’ve been trying all night with no luck.
Is it possible to fill an area of a polar chart like a pie chart?
I don’t want the fill to go over zero. It should rotate around 0, like a pie chat would.
I’ve changed the fill attribute to ‘tonext’ and ‘toself’, both produce the same result.
theta = np.linspace(120, 310, 1000)
r = np.ones(len(theta))
polar_data = [
go.Scatterpolar(
r = r,
theta = theta,
mode = 'lines',
fill = 'toself',
fillcolor = '#0A8883',
marker = dict(color = '#0A8883'),
opacity = 0.7
)
]
polar_layout = go.Layout(
title='',
showlegend = False,
autosize=False,
width=450,
height=500,
margin=go.layout.Margin(
l=40,
r=80,
b=50,
t=50,
pad=0),
polar = dict(radialaxis = dict(tickfont = dict(size = 12)),
angularaxis = dict(tickfont = dict(size = 12),
rotation = 90,
direction = "counterclockwise")),
)
fig = go.Figure(data=polar_data, layout=polar_layout)