Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#8,077 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
62/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
javascript

Direção de pesquisa

Start with the linked CodePen reproduction and compare hover selection for overlapping points in scatter and scattergl, then trace the scattergl hover entry point and related tests. Done means both trace types select the same trace for coincident points and a regression test covers the reported ordering.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug P3 size: 1
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
Linguagem predominante
JavaScript
Estrelas
18.3k
Forks
2k
Merge médio
1d 19h
PRs com merge (30d)
21

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de plotly/plotly.js

Todas as issues de plotly/plotly.js

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.