Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show/Hide all traces as a single event #968

Closed
backnotprop opened this issue Sep 22, 2016 · 8 comments
Closed

Show/Hide all traces as a single event #968

backnotprop opened this issue Sep 22, 2016 · 8 comments

Comments

@backnotprop
Copy link

backnotprop commented Sep 22, 2016

Feature request here

It does not seem possible that all traces can be shown/hidden with one click event. In the case where there are many traces and I want to compare small portions, hiding all and then selecting only the ones I want is a much simpler workflow than what is currently possible (deselecting all the ones I don't want).

The legend seems like the most obvious choice to put the event creator, but I wouldn't be opposed to having it in the toolbar as well.

@etpinard
Copy link
Contributor

Can you clarify what you mean by event?

  • An event as in a user click / double-click interaction? or
  • an event like the plotly_ series the graph <div> emits?

@backnotprop
Copy link
Author

this: An event as in a user click / double-click interaction

@etpinard
Copy link
Contributor

Here's two ways to do this: http://codepen.io/etpinard/pen/BLpVrG

I doubt that a native hide / show all trace buttons would benefit a lot of users. Could you elaborate on the possible use cases?

@etpinard
Copy link
Contributor

Would something like what's discussed in #674 satisfy your request?

@backnotprop
Copy link
Author

backnotprop commented Sep 22, 2016

Thanks, the codepen example is close and seems like something I can build a custom solution with. The functionality I would like would be to only unselect them in the legend and remove from plot/chart, not an actually hiding of the legend (my mistake for any confusion).

I'm not sure about others, but my particular use case is when many country data points are plotted, and the user would like to easy compare only a few if those at a time without having to create new charting, and without having to manually unselect/hide all the unwanted traces.

#647, yes that would, as it is another easy/fast option to hide all unwanted traces.

@etpinard
Copy link
Contributor

Here's another example that keeps the legend: http://codepen.io/etpinard/pen/YGNjwL

I like the idea of adding multiple legend modes to fine tuned legend click (or even double click) iterations. The exact details of the implementation aren't 100% clear to me and need to be worked out.

Would it be ok if I merge your issue with #674 ?

@backnotprop
Copy link
Author

backnotprop commented Sep 22, 2016

That codepen is the exact functionality we are looking for.

Yes merging is fine, thanks for the help!

@etpinard
Copy link
Contributor

merged with #674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants