-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.py
30 lines (25 loc) · 881 Bytes
/
layout.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
# layout.py
from dash import html, dcc
from algorithms import (update_dashboard_1, update_dashboard_2, update_dashboard_3)
csv_file_path = 'data/dummy_data.csv'
def get_dashboard1_layout():
graphs = update_dashboard_1(csv_file_path)
return html.Div([
html.H1('Dashboard 1'),
html.Div(graphs),
html.Div(id='dashboard1-content')
], style={'text-align': 'center'})
def get_dashboard2_layout():
graphs = update_dashboard_2(csv_file_path)
return html.Div([
html.H1('Dashboard 1'),
html.Div(graphs),
html.Div(id='dashboard2-content')
], style={'text-align': 'center'})
def get_dashboard3_layout():
graphs = update_dashboard_3(csv_file_path)
return html.Div([
html.H1('Dashboard 1'),
html.Div(graphs),
html.Div(id='dashboard3-content')
], style={'text-align': 'center'})