Add index as dropdown menu in plotly
问题 I am plotting chart using below code: fig = px.line(df, x='Time', y=['one','two'], color= df.index) fig['layout']['xaxis']['autorange'] = "reversed" fig.update_layout(legend_title="Price") fig.show() Dataframe i am working with like is below: Time one two 100 9:30 129 243 110 10:30 234 453 120 11:00 155 234 Want to add dropdown menu to select from index and show one row at a time in chart. example if i select 110 from drop down it should only show chart for that row. Is there any easy fix for