Skip to content

[BUG]: scatter and scattergl show different hover labels for overlapping data points #8077

Description

@Lexachoc

Description

When two traces have data points at exactly the same position, scatter and scattergl select different traces for the hover label.

In this example, both traces A and B have a point at (1, 0), with A added first and B added second.

With scatter, hovering the point shows the hover label for B (Correct).

With scattergl, hovering the same point shows the hover label for A, even though the traces and their order are otherwise identical.

I would expect scatter and scattergl to behave consistently when resolving overlapping points.

Reproducible example:

https://codepen.io/Lexachoc/pen/ogZWJKe

For scatter case:

Image

When moving even closer to marker center, label A will then show:

Image

For scattergl case, it always shows label A:

Image

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions