Plotly does not correctly redraw text items when updated through Plotly.react()
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
- Open https://codepen.io/rtwfroody/pen/OJRxdMy, and you'll see a graph with the points labeled "one", "two", and "three".
- Hit the toggle checkbox, and the graph contents will change. Now only the first point is labeled. This is expected.
- Hit the toggle checkbox again. The code returns the graph to the exact same data as it started with, but the 2nd and 3rd points have no labels.
- No matter how many times you hit the checkbox, the original labels are never drawn.
This is a simple example of the issue I have in https://casualhacker.net/covid19-wealth. In that link, you can see that when you change the scale (see log checkboxes), then the labels are redrawn correctly.
Using layout.datarevision doesn't make things better.
Beitragsleitfaden
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
Reproduziere das Verhalten aus dem verlinkten CodePen mit Plotly.react(), indem du das Kontrollkästchen umschaltest, um die Beschriftungen zu entfernen und wiederherzustellen. Beginne damit, den Plotly.react()-Redraw-Pfad für Textelemente nachzuverfolgen und zu prüfen, ob layout.datarevision ihn beeinflusst. Als abgeschlossen gilt die Aufgabe, wenn die zweite und dritte Beschriftung nach dem Wiederherstellen der ursprünglichen Daten zurückkehren und dem anfänglichen Diagramm entsprechen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- 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