-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add support for Legend item click events
#13922
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
Conversation
e30f603 to
0b73745
Compare
|
This is tentatively ready. I need to add |
0b73745 to
f03329b
Compare
philippjfr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a simple, well isolated change.
* Add support for `Legend` item click events * Allow correct cursor when using JS callbacks * Add Legend.js_on_click() and Legend.on_click() * Add interaction/legends/legend_click example * Update unit tests * Add visual integration tests
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR adds
LegendItemClick(Legend, LegendItem)event andLegend.on_click()andLegend.js_on_click().From
examples/interaction/legends/legend_click. Click on legend items to cycle through markers:Screencast.from.05.06.2024.15.27.26.webm
fixes #12185