plotly / plotly/plotly.js

enable hover label text background colour to be configurable

Offen
#6,637 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

I have a plotly.js web app that uses plots with ~20 series, each with a unique 'dark mode compatible' colour. However when hovering over each of the plot lines, the series name in the label that pops up upon hover is hard to read, as the colours are configured for dark mode.

In the image below, I want to be able to change the background colour behind the PID_Angle_Ou... label to a dark-mode compatible colour (e.g. dark gray), or make it transparent.

image

From what I've found, I can only change the background colour of the (116, 243.3177) label, but I really need to be able to change the background of the series name.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Das Issue nennt keine Quelldatei, keinen Test und keinen Einstiegspunkt. Beginne damit, die Darstellung des Hover-Labels und die vorhandene Option zu finden, die den Hintergrund des Koordinaten-Labels ändert; ermittle, wo das Label des Seriennamens formatiert wird. Als erledigt gilt, dass der Hintergrund für den Seriennamen konfiguriert werden kann, einschließlich eines dunklen oder transparenten Werts, mit Abdeckung des angeforderten Verhaltens.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.