Is it possible to update another plot based on the selection on a map's legend?

I’m trying to make an analytic app that uses a scatter_mapbox, a DataTable, and several other plots. Is it possible to update the data table and plot based on the selection of the scatter_mapbox color legends? So I can select all, one or several of the options on the map and it updates the corresponding table and additional plots dynamically.

Bump, I know how to use the interactive procedure Part 4. Interactive Graphing and Crossfiltering | Dash for Python Documentation | Plotly but I need to filter by using the map’s legend.