Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Annotated Heatmap: automatic font color

Offen
#485 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
fsharp

Rechercherichtung

Beginne mit dem Lesen der AnnotatedHeatmap-Implementierung und der im Issue verlinkten Dokumentation bzw. dem Beispiel für annotated heatmap und vergleiche anschließend das Kontrastverhalten, das in plotly.py issue 1300 diskutiert wird. Ermittle, an welcher Stelle die Farbe der Beschriftungsschrift die Zellwerte berücksichtigen kann, und beende die Arbeit, sobald der annotierte Text über die verschiedenen Heatmap-Farben hinweg lesbar bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Given an annotated heatmap I would expect the cell text to contrast with the cell color.
(Not doing so leads to the readability issues in the current documentation/example of Annotated Heatmap: https://plotly.net/simple-charts/heatmaps.html)

A good contrast is shown and discussed on the python side of plotly: https://github.com/plotly/plotly.py/issues/1300

When I did not find a way to do that, I looked at the implementation of AnnotatedHeatmap.
Here the configuration of the annotations is not dependent on the actual cell values - I could only apply a workaround of setting a background color.
I did not find/check the actual layouting step if there is a better place to compute correct font color.

Vorherrschende Sprache
F#
Sterne
860
Forks
99
Ø Merge
22 Min.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus plotly/Plotly.NET

Alle Issues in plotly/Plotly.NET

Ähnliche Issues

Weitere Issues zu Data Visualization

Neue Issues direkt in Ihr Postfach

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