Skip to content

user should be able to get mouse data coordinate on click #4654

Closed

Description

@Pierre-Bartet

The "plotly_click" is only fired when clicking on data point, how to obtain the same information when clicking on an empty part of the plot ?
It seems that people have tried this for years, but all the solutions I have found are just completely broken.

EDIT: I'd like to add that with typedarray support + scattergl plot, plotly is one of the best plotting library, but without the ability to correctly turn mouse coodinates into data coordinates, it is just impossible to use for any real life usage.

Activity

  1. hminle commented on Sep 19, 2022

    @hminle

    Hi @Pierre-Bartet , have you found a solution for this issue?

  2. Pierre-Bartet commented on Sep 19, 2022

    @Pierre-Bartet
    Author

    It was a long time ago but unfortunately I don't think so.

  3. self-assigned this
    on Jul 3, 2024
  4. removed their assignment
    on Aug 2, 2024
  5. changed the title [-]Get mouse data coordinate on click[/-] [+]user should be able to get mouse data coordinate on click[/+] on Aug 9, 2024
  6. emilykl commented on Aug 27, 2026

    @emilykl
    Contributor

    This is now possible by setting layout.clickanywhere to true (added in #7707). Use the latest plotly.js (v4.0.0) to try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions