Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

graph_objs.Indicator does not work on dash

$
0
0

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

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles