-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdash_01.py
More file actions
30 lines (25 loc) · 767 Bytes
/
dash_01.py
File metadata and controls
30 lines (25 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash()
# Similar to the first app on Dash tutorial
app.layout = html.Div([
html.H1('Hello Dashworld'),
html.Div('''
Dash: This is some plain text. Instead of a div, we can use markdown too.
'''),
dcc.Graph(
id='hellodashworld-graph',
figure={
'data': [
{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'Winston-Salem'},
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal'},
],
'layout': {
'title': 'Dash Bar Chart Visualization'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)