1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import dash from dash import dcc,html app = dash.Dash(__name__) app.layout = html.Div([ dcc.Graph(id='example-graph', figure={'data': [{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'SF'}, {'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': 'Montreal'}], 'layout': {'title': 'Dash Data Visualization'}} ) ]) if __name__ == '__main__': app.run_server(debug=True)