创建图形并为其分配值时出现plotly错误

时间:2019-04-20 19:49:13

标签: python pandas plotly

我的代码"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)

我需要将四个图形放在一起才能创建完整的仪表板

0 个答案:

没有答案