Dashboards bouwen met Dash en Plotly
Alex Scriven
Data Scientist
$$

$$
value van eerste dropdown (INPUT)options van de tweede dropdown (OUTPUT)
@callback( Output('minor_cat_dd', 'options'), Input('major_cat_dd', 'value'))def update_major_cat(major_cat_dd): # Filter options (list of dicts) return minor_options
@callback( Output('minor_cat_dd', 'value'), Input('minor_cat_dd', 'options'))def update_minor_cat(minor_cat_options): # Kies een standaardwaarde return chosen_value
$$
@callback(
Output('my_title', 'children'),
Output('minor_cat_dd', 'value'),
Input('minor_cat_dd', 'options')
)
def some_function(input):
# function body
return title_value, dropdown_value

Dashboards bouwen met Dash en Plotly