Adding drag and drop effects to a plotly map

Here is how the interaction works for the callback:

@app.callback(
    Output("selected-data", "figure"),
    [
        Input("county-choropleth", "selectedData"),
        Input("chart-dropdown", "value"),
        Input("years-slider", "value"),
    ],
)
def display_selected_data(selectedData, chart_dropdown, year):
    if selectedData is None:

Using an input mechanism similar to that will get you to show the selected data’s information.