Hoverlabels in stacked area charts with ggplotly not working properly
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello there!
When creating a stacked area chart with ggplot in R and using ggplotly to create a plotly version of it, there occurs a rather grave error: in the hoverlabel only the frist value for each trace is shown. Say, I have years on the x axis, then for all years 2019 will be displayed, even though the value belongs to 2023.
My minimum code sample is here: https://plotly.com/ggplot2/filled-area-plots/
The official tutorials samples show the same behaviour on my Linux machine, all packages up to date.
Would really enjoy it if that were to be fixed!
Best regards!
Alex
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
Beginne mit dem im Issue verlinkten Minimalbeispiel, https://plotly.com/ggplot2/filled-area-plots/, und reproduziere das gestapelte Flächendiagramm mit den aktuellen Paketen. Verfolge, wie ggplotly Hover-Labels für die gestapelten Traces erstellt; fertig ist die Aufgabe, wenn jedes Jahr den zu diesem Jahr gehörenden Wert anzeigt und nicht den ersten Wert im Trace.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100