Annotated Heatmap: automatic font color
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- F#
- Sterne
- 860
- Forks
- 99
- Ø Merge
- 22 Min.
- Gemergte PRs (30 T.)
- 1
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
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.
Bewertung
- Tech-Stack
- fsharp
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100