[BUG]: `scattergl` text is hidden behind selected markers
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
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'}
},
For unselect.textfont, both works, only select.textfont is broken for scattergl:
Note
To confirm, uncomment
textposition: 'top-center',
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de plotly/plotly.js
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
chore P3 plotly-internal size: 3 task
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
chore P1 plotly-internal size: 1 task
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
chore P3 plotly-internal size: 1 task
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
plotly/plotly.js#7648 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de plotly/plotly.js
Issues similares
-
Complexity: Small P-Feature: Projects page ready for merge team role: back end/devOps role: front end size: 0.25pt
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 67/100
bellingcat/toolkit#905 ·
-
self-care self-care:docs-build-time-investigator
Dificultad 2/5 Medio día Aptitud para principiantes 76/100
githubnext/gh-aw-cao#14191 ·
Los mantenedores suelen responder en 1 día
-
effort:low impact:medium RAG status: auto-triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
mastra-ai/mastra#25229 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
sugarlabs/musicblocks#8984 ·
Los mantenedores suelen responder en 1 día