Hi guys!
I built an indicator chart (or gauge-chart) like this one https://plot.ly/javascript/gauge-charts/ 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 (https://plot.ly/~pradel/29).
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__":
app.run_server(debug=True)
Can anyone help me figuring out what Iām doing wrong? Thanks in advance!