✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

graph_objs.Indicator does not work on dash

Dear all, I’m pretty fresh with plotly and I have problem about how to use graph_objs.Indicator. It does not work on my dash

this is my code

@app.callback(
    dash.dependencies.Output('Gauge-graph', 'figure'),
    [dash.dependencies.Input('Region', 'value'),dash.dependencies.Input('Category', 'values')])
def gauge_chart_profit_ratio(region, cate):
    fig = go.Figure(data=go.Indicator(
        mode="number",
        value=35,
        title="Recovered Cases",
    ))

    return fig

I also try other chart such as line or bar, it is well working withou Gauge one
If you have any solution, please give me some advices. Thank you so much
p.s My plotly version is 4.8.1

have you tried upgrading dash?

It is well working. I just update last version of dash. Thank you !

1 Like