Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#8,081 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
18.3k
Fork
2k
Merge medio
1g 19h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plotly/plotly.js

Tutte le issue di plotly/plotly.js

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.