Skip to content

Instantly share code, notes, and snippets.

@techzeero
Created March 2, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techzeero/458fa2aebade47b0b05b82472107abdf to your computer and use it in GitHub Desktop.
Save techzeero/458fa2aebade47b0b05b82472107abdf to your computer and use it in GitHub Desktop.
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