Hi there, I’m new to Dash and have run into some issues with making an interactive Pie Chart. Hopefully some kind soul can help me out!
I don’t seem to be able to get a Pie chart generated by the following sequence of events:
app.layout = html.Div(dcc.Graph(id = ‘Pie’), Some radiobutton with id=‘Pie_selector’)
@app.callback(dash.dependencies.Output(‘Pie’, ‘figure’),[dash.dependencies.Input(‘Pie_selector’, ‘value’)]
if pie == ‘x’:
piedata = go.Pie(values=[1,2,3], labels=[‘a’,‘b’,‘c’])
I’ve done the same process for scatterplots and boxplots and they all work fine. I’ve also used the display_content function to throw up a pie chart (from an answer on the forum) but while I can get it to display, this pie chart is not interactive. My Plotly version is 2.4.0.
Would really appreciate the help! Apologies, I’m not sure how to use the Markdown to show my code