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

"isolate" legend toggle mode #404

Closed
leeoniya opened this issue Dec 16, 2020 · 3 comments
Closed

"isolate" legend toggle mode #404

leeoniya opened this issue Dec 16, 2020 · 3 comments

Comments

@leeoniya
Copy link
Owner

would be good to have a legend mode where clicking a series toggles off all other series (isolating the clicked one).

@leeoniya
Copy link
Owner Author

leeoniya commented Apr 3, 2021

cc @oscgonfer,

this is now implemented. by default isolate mode is behind Ctrl + click, but you can make it the default mode by setting opts.legend.isolate: true.

@oscgonfer
Copy link

Boom 💥

Thanks for this.
On a side note: I noticed that if I make two subplots with opts.sync.setSeries: true, when I isolate the first series of subplot 1, the first series of subplot 2 is also isolated. I assume this is intended behaviour?

@leeoniya
Copy link
Owner Author

leeoniya commented Apr 4, 2021

yes, this is expected behavior. sync simply emits the same mouse events across all charts in the group.

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

No branches or pull requests

2 participants