Skip to content

onDoubleClick is not firing for scatter plot #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
prasadkumar0590 opened this issue Aug 24, 2021 · 1 comment
Open

onDoubleClick is not firing for scatter plot #257

prasadkumar0590 opened this issue Aug 24, 2021 · 1 comment

Comments

@prasadkumar0590
Copy link

We are trying for scatter plot when we double click on data point we have to catch the data points and show it in a popup. But it seems onDoubleClick is not firing.

@Lexachoc
Copy link

Lexachoc commented Dec 8, 2024

It will fire but the onDoubleClick event will not return any data, only the onClick event does.

onClick={(data)=> {
    console.log("single click")
    console.log(data)
}}
onDoubleClick={(data)=> {
    console.log("double click")
    console.log(data) // null
}}

I would also like to display data in a popup when I double-click on the point. But Plotly doesn't support that yet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants