plotly / plotly/plotly.js

[BUG]: No click events in polar charts if drag mode is not zoom

Open
#7,612 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Description

When the drag mode is not set to zoom for polar charts the click events stop emitting entirely

Screenshots/Video

I have recreated the issue here in codepen

https://codepen.io/hcrocker/pen/RNrdYOM

Steps to reproduce
  1. with dragmode set to "pan" and clickmode set to "event" in the layout
  2. click anywhere on the polar chart
  3. nothing happens (expected: should see alert from click event function)
  4. with dragmode set to "zoom"
  5. click anywhere on the polar chart
  6. you can see the alert from the click event function
Notes

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 with the CodePen reproduction linked in the issue and trace the polar chart interaction path for dragmode="pan" with clickmode="event". Done means clicking the polar chart emits the click event and preserves the existing behavior when dragmode="zoom".

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.