plotly / plotly/plotly.js

Allow access data on the `plotly_doubleclick` event

Open
#7,303 1 comment 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.