import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
fig = go.Figure(go.Indicator(
mode = “gauge+number”,
value = 270,
domain = {‘x’: [0, 1], ‘y’: [0, 1]},
title = {‘text’: “Speed”}))
fig.show()
app = dash.Dash()
app.layout = html.Div([
dcc.Graph(figure=fig)
])
if name == ‘main’:
app.run_server(port=8645)
Hi @MONSTER
Try running this version (it worked for me):
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
fig = go.Figure(
go.Indicator(
mode="gauge+number",
value=270,
domain={"x": [0, 1], "y": [0, 1]},
title={"text": "Speed"},
)
)
app = dash.Dash()
app.layout = html.Div([dcc.Graph(figure=fig)])
if __name__ == "__main__":
app.run_server(debug=True)
Hey
I did try with all the right indentations, but its still not working.