Created
March 2, 2022 09:54
-
-
Save techzeero/458fa2aebade47b0b05b82472107abdf to your computer and use it in GitHub Desktop.
This file contains 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
app = dash.Dash() | |
df = px.data.iris() | |
app.layout = html.Div([ | |
html.H1( | |
id = 'H1', | |
children = 'Styling using html components', | |
style = {'textAlign':'center', 'marginTop':40,'marginBottom':40} | |
), | |
dcc.Dropdown( | |
id = 'dropdown', | |
options = [ | |
{'label':'Setosa', 'value':'setosa' }, | |
{'label': 'Versicolor', 'value':'versicolor'}, | |
{'label': 'Virginica', 'value':'virginica'} | |
], | |
value = 'setosa' | |
), | |
dcc.Graph(id = 'graph') | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment