Plolty Indicator (gauge-chart) chart does not show in dash

Hi guys!

I built an indicator chart (or gauge-chart) like this one using the python reference library and the javascript reference library. In both cases the chart plots fine and I can see it in chart studio (

But when I try to plot that using dash, it simply does not show, I can only see the layout of a chart, like this image:

Here is my code:

import dash
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash(__name__)

data= [{'type': 'indicator',
        'mode': 'gauge+number',
        'value': 0.5}]
layout= {'title': 'indicador'}

figure= {'data': data,
         'layout': layout}

app.layout= html.Div([dcc.Graph(id= 'indicador', figure= figure)])

if __name__ == "__main__":

Can anyone help me figuring out what I’m doing wrong? Thanks in advance!

you likely need to upgrade dash! this was included in the latest version of dash

Thanks! It works now. I was working under the impression that i had the last update, but i realized that was not the case.

1 Like