Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Invert Legend Selection

Clicking an item in the legend will remove that item from the plot. Is it possible to invert this action? I.e., If I click on an item in the legend, it’ll remove everything except that selection?

I often have 15-20 entities in a plot and want users to be able to remove noise quickly.

Is it possible to invert this action?

Not at the moment unfortunately.

We’re planning on adding different options for legend interactions at some point in the near future. The exact specs are sill a work in progress.

You can subscribe to https://github.com/plotly/plotly.js/issues/674 for the latest development info.