Skip to content
Advertisement

Combine DateRangePicker and Dropdown in Plotly Dash

I’m trying to use DateRangePicker and Dropdown to callback a dash_table. Actually I tried to call dropdown option first and then call dash_table after calling options, but it didn’t work. I don’t know how to add a second call back that is based on dropdown options.

Below is my code:

JavaScript

Advertisement

Answer

You can include both filters in your callback as follows:

JavaScript
Advertisement