✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Plotly express timeline with dropdown for html

Hi

I am using plotly express timeline to visualize some schedule data. Now I want to create a dropdown, to filter the data by one (later by two) columns. All the approaches I found are on graph_objects, not on express.

fig = px.timeline(df_plot, x_start="Start", x_end="Finish", y="Task", color='Description')

What I want to achieve here is

fig = px.timeline(df_plot.loc[df_plot['Group']=='X1'], x_start="Start", x_end="Finish", y="Task", color='Description')

where the ‘X1’ comes from a dropdown. This I like to write out as an html.

Is this possible in the timeline?

Thanks for helping.