forked from plotly/dash-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dash-overlapping-graphs.py
72 lines (63 loc) · 1.85 KB
/
dash-overlapping-graphs.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash()
app.layout = html.Div([
dcc.Checklist(
id = 'clts',
values=[],
options=[
],
labelStyle={'display': 'inline-block'},
style={"height" : "3vh", "width" : "100vw"}
),
html.Div([
dcc.Graph(
figure={'data': [{'x': [1, 2, 3]}]},
id='ts1',
style={
"height": "100vh",
"width": "25vw",
"float": "left",
'display': 'inline-block'
}
),
dcc.Graph(
figure={'data': [{'x': [1, 2, 3]}]},
id='ts2',
style={
"height": "100vh",
"width": "25vw",
"float": "left",
'display': 'inline-block'
}
),
dcc.Graph(
figure={'data': [{'x': [1, 2, 3]}]},
id='ts3',
style={
"height": "100vh",
"width": "25vw",
"float": "left",
'display': 'inline-block'
}
),
dcc.Graph(
figure={'data': [{'x': [1, 2, 3]}]},
id='ts4',
style={
"height": "100vh",
"width": "25vw",
"float": "left",
'display': 'inline-block'
}
),
], style={"height" : "97vh", "width" : "100vw"}),
dcc.Interval(
id='interval-component10',
interval=10 * 1000 # in milliseconds
)
]
)
if __name__ == '__main__':
app.run_server(debug=True)