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:
When moving even closer to marker center, label A will then show:
For scattergl case, it always shows label A:

Description
When two traces have data points at exactly the same position,
scatterandscatterglselect different traces for the hover label.In this example, both traces
AandBhave a point at(1, 0), withAadded first andBadded 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
scatterandscatterglto behave consistently when resolving overlapping points.Reproducible example:
https://codepen.io/Lexachoc/pen/ogZWJKe
For
scattercase:When moving even closer to marker center, label A will then show:
For
scatterglcase, it always shows label A: