Enable wheel and right click for Sunburst chart
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
On most plot types, the plotly_click event is fired on left, wheel, and right clicks. (By default, right clicking will trigger the browser's default contextmenu event but that can be disabled by wrapping the plot in a div that prevents the default event.) However, this does not seem to be the case for sunburst charts (see this comment in the onClick definition).
Is it possible to add functionality such that the plotly_click (or plotly_sunburstclick) event is fired on all three click types?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/traces/sunburst/fx.js at the onClick definition and compare its handling with click behavior in other plot types. Verify the resulting behavior for left, wheel, and right clicks, including the plotly_click or plotly_sunburstclick event, and confirm that the existing contextmenu behavior remains understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100