Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG]: `scattergl` text is hidden behind selected markers

Abierto
#8,081 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

Start with the linked CodePen reproduction and compare the scattergl behavior with the equivalent scatter trace. Trace scattergl text rendering around the vendor line using ctx2.getImageData mentioned in the report, and review issue #7285 for context. Done means selected text is visible like unselected text, with the reported canvas warning addressed or its scope clarified.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Description

scattergl text is hidden behind selected markers

The equivalent scatter trace renders the text correctly.

Reproducible example:

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

    mode: "markers+text",
    texttemplate: "x=%{x}",
    selectedpoints: [0],
    selected: {
      textfont: { color: "red" }
    },
    unselected: {
      textfont: {color: 'white'}
    },
Image

For unselect.textfont, both works, only select.textfont is broken for scattergl:

Image
Note

To confirm, uncomment

textposition: 'top-center',
Image

Additional warning observed

When using:

 mode: "markers+text",

or

 mode: "text",

scattergl will throw this warning:

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

caused by this line: var bottomPx = firstTop(ctx2.getImageData(0, 0, l2, l2)); from the vendor package.

Reported before in https://github.com/plotly/plotly.js/issues/7285

Lenguaje dominante
JavaScript
Estrellas
18.3k
Forks
2k
Merge medio
1 d 19 h
PR fusionados (30 d)
21

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de plotly/plotly.js

Todos los issues de plotly/plotly.js

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.