-
Notifications
You must be signed in to change notification settings - Fork 0
/
offline_layout.py
executable file
·44 lines (39 loc) · 1.26 KB
/
offline_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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Layout for the offline demo data for the app
'''
# dash modules
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State, Event
import plotly.graph_objs as go
import plotly.plotly as py
import pandas as pd
import tools as vt
import offline_data as vod
# Demo data section
offline_div = html.Div([
# first sub-sub-div
html.Div([
html.H2(children = 'Pick a Match from the demo list:'),
html.Div(children = [
# dropdown menu for the demo matches
vt.match_dropdown(matches = vod.demo_matches, id = 'demo-match-selection', default_value = 'first')
], id = 'demo-match-selection-div'),
html.H2(children = 'Roster Plot'),
html.H3(children = 'Pick a Plot type:'),
# dcc.RadioItems(id = 'demo-plot-type'),
html.Div(children = [
dcc.RadioItems(id='demo-plot-type')
],
id = 'demo-plot-type-div'),
html.H4(children = 'Match Roster Stats'),
html.Div(id = 'demo-roster-table'),
html.Div(children = [
dcc.Graph(id = 'demo-roster-gold-plot'),
])
]),
], id = 'demo-div',
style = {'width': '48%', 'display': 'inline-block'})