Hoverlabels in stacked area charts with ggplotly not working properly

Offen
#2,225 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

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

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.

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

Vorherrschende Sprache
R
Sterne
2.7k
Forks
641
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

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.R

Alle Issues in plotly/plotly.R

Ähnliche Issues

Weitere Issues zu R

Neue Issues direkt in Ihr Postfach

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