Skip to content

hoverdistance broken in 3D scatter plots (hover radius vs click radius)? #6908

Open
@bolau

Description

@bolau

Hi,

I want to use plotly in interactive dashboards. With my 3D scatter plots, I noticed that it's quite confusing that the click radius is different from the hover radius: when you move the mouse inside a point's hover radius, you get the hover lines that point to the axes, but it doesn't react to clicks yet. For that, you have to go much closer.
Is there a way to change the click radius to match the hover radius?

So I tried to change the hoverdistance parameter in the layout object, but realized that it seems that hoverdistance is broken in 3D plots. Here's a working example. You will see, that changing the hoverdistance doesn't make any difference:
https://codepen.io/bolau/pen/LYvPmWw

Is this a bug, or am I doing something wrong?
Here's the link to the documentation on the hoverdistance parameter, which doesn't distinguish between 2D and 3D plots:
https://plotly.com/javascript/reference/layout/#layout-hoverdistance

Best, Boris

Activity

self-assigned this
on Jul 12, 2024
removed their assignment
on Aug 2, 2024
changed the title [-]hoverdistance broken in 3D scatter plots; hover radius vs click radius? [/-] [+]hoverdistance broken in 3D scatter plots (hover radius vs click radius)?[/+] on Aug 9, 2024
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

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bolau@gvwilson

        Issue actions

          hoverdistance broken in 3D scatter plots (hover radius vs click radius)? · Issue #6908 · plotly/plotly.js