Created
September 23, 2020 19:21
-
-
Save prrao87/fb338c092e78b3eab778be178abae9a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dash | |
| import dash_core_components as dcc | |
| import dash_html_components as html | |
| import pandas as pd | |
| app = dash.Dash('app', server=server) | |
| df = pd.read_csv('input_data.csv') | |
| # ========== App Layout ================ | |
| app.layout = html.Div([ | |
| html.H1('Example app'), | |
| dcc.Dropdown( | |
| id='dropdown-1', | |
| options=[ | |
| {'label': 'Oct 2018', 'value': '201810'}, | |
| {'label': 'Nov 2018', 'value': '201811'}, | |
| ], | |
| value='201810', | |
| ), | |
| dcc.Graph(id='line-chart-1'), | |
| ]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment