plotly / plotly/plotly.js

Enable wheel and right click for Sunburst chart

Open
#7,311 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P2
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.