# Invert Legend Selection

**URL:** <https://community.plotly.com/t/invert-legend-selection/2018>\
**Category:** plotly.js\
**Created:** [August 31, 2016, 8:00pm UTC](https://community.plotly.com/t/invert-legend-selection/2018 "2016-08-31T20:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![econgineer](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@econgineer](https://community.plotly.com/u/econgineer)\
**Post date:** [August 31, 2016, 8:00pm UTC](https://community.plotly.com/t/invert-legend-selection/2018/1 "2016-08-31T20:00:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [September 1, 2016, 2:46pm UTC](https://community.plotly.com/t/invert-legend-selection/2018/2 "2016-09-01T14:46:28Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [September 1, 2016, 4:02pm UTC](https://community.plotly.com/t/invert-legend-selection/2018/3 "2016-09-01T16:02:09Z")

</div>

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