This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
bundle on master isn't up-to-date? #377
Closed
Description
I just ran a simple example from the root of the directory and the dropdown css isn't coming through. There have been a few PRs that have updated the dropdown component in the last couple of days by @valentijnnieman and @wbrgss , so I suspect that the bundles weren't regenerated or committed to the repo.
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.graph_objs as go
app = dash.Dash(__name__)
app.scripts.config.serve_locally = True
app.css.config.serve_locally = True
app.layout = html.Div([
dcc.Dropdown(
id='color',
options=[{'label': i, 'value': i} for i in [
{'label': 'Navy', 'value': '#001f3f'},
{'label': 'Blue', 'value': '#0074D9'},
{'label': 'Aqua', 'value': '#7FDBFF'},
{'label': 'TEAL', 'value': '#39CCCC'},
{'label': 'OLIVE', 'value': '#3D9970'},
{'label': 'GREEN', 'value': '#2ECC40'}
]],
value='#2ECC40'
),
dcc.Graph(id='graph'),
])
@app.callback(Output('graph', 'figure'), [Input('color', 'value')])
def update_graph(color):
return {
'data': [{
'x': [
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
],
'y': [
219, 146, 112, 127, 124, 180, 236, 207, 236, 263,
350, 430, 474, 526, 488, 537, 500, 439
],
'type': 'bar',
'marker': {'color': color}
}],
'layout': {
'transition': {
'duration': 500
}
}
}
if __name__ == '__main__':
app.run_server(debug=True)
Metadata
Metadata
Assignees
Labels
No labels