-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add legend click interaction attrs #3862
Conversation
- both enumerated with values 'toggle', 'focus', false
Codepen with the new feature: https://codepen.io/antoinerg/pen/XwpvaO |
Once a legend item is focused and we want to focus on another one, we have to first unfocus (it requires 2 actions): Now I understand this would be a breaking change and I am not even suggesting that we include this new mode in this PR. However, we should probably think ahead of time what its name would be. Maybe it could be called |
Thank you for adding customizability to our legend interactions @etpinard 💃 💃 |
currently named
itemclick
anditemdoubleclick
, both enumerated attributes with values'toggle'
,'focus'
(now'toggleothers'
),false
. This PR could be viewed as a follow-up of #2581resolves #665 by setting
resolves #674 by setting
and should help us offer solutions for #1462 and #3135
cc @plotly/plotly_js