Allow access data on the `plotly_doubleclick` event
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
The double click event will trigger the single click event as well as reported in https://github.com/plotly/plotly.js/issues/1546. But the issue has been closed.
Here's the example showing the issue:
https://codepen.io/Lexachoc/pen/qEWZJxb
Only the single click event plotly_click can access the data.
There are usecases to access the data points on double click e.g., in https://github.com/plotly/react-plotly.js/issues/257.
It would be nice to allow access the data also on double click. And maybe also to avoid triggering a single-click event. (which will solve the issue report in https://github.com/plotly/plotly.js/issues/1546)
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 with the linked CodePen reproduction and the referenced plotly.js issue 1546 and react-plotly.js issue 257. Trace how plotly_click and plotly_doubleclick are dispatched, then verify that double-click handlers can access the relevant data and that the expected single-click behavior is defined. Done means the requested double-click data access works and the interaction behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100