我的代码"Unexpected keyword argument value
出现错误,我不知道为什么?
when I create a graph I assign a value for each of them and still show me the same error.
html.Div([
dcc.Graph(id='graph-3'),
dcc.Dropdown(
id='year',
options= year_variable,
value=df['year'].min())]),
])
@app.callback(
dash.dependencies.Output('graph-3', 'options'),
[dash.dependencies.Input('year', 'value')])
def set_contients_options(selected_contients):
return [{'label': i, 'value': i} for i in conteintes_variable[selected_contients]]
if __name__ == '__main__':
app.run_server(debug=True)
我需要将四个图形放在一起才能创建完整的仪表板