statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
156 stars 29 forks source link

Allow legends to trigger filter behavior #233

Closed abought closed 2 years ago

abought commented 3 years ago

Many plots use categorical data (direction of effect, tissue or gene type, etc). It would be useful if legend items directly allowed the user to trigger filters within the plot: "show only items that match this point". Clicking should set the item as selected, and clearing should reset to the default filters on the plot.

Needs: