plotly / plotly/plotly.R

ggplotly tool tip disappearing for some points

Offen
#1,742 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

Developing a Shiny app in R3.6.3 with ggplotly version4.9.2.

Plotting a scatter plot from ggplotly with tooltip of each point.

As the tool tip for each point grows larger (more rows), the points toward the top of the graph lose the tooltip even if the tool tip is the same for each point.

If the tooltip is the same, why do some points lose the tool tip and others can display it?

In the code below vary numRows or the size of the plot and points from top towards the bottom lose the tooltip.

numRows = 20

ggiris <- ggplot(data = iris,
                 aes(x = Petal.Width,
                     y = Sepal.Length,
                     color = Species,
                     text = paste(rep(LETTERS, length.out = numRows), collapse = "<br>"))) +
  geom_point()

ggplotly(ggiris, tooltip = "text")

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Führen Sie zunächst das bereitgestellte R-ggplotly-Beispiel aus und variieren Sie numRows sowie die Plotgröße, um die fehlenden Tooltips zu reproduzieren. Verfolgen Sie, wie ggplotly große Tooltip-Inhalte für Punkte nahe dem oberen Rand des Diagramms rendert; abgeschlossen ist die Aufgabe, wenn jeder Punkt seinen Tooltip behält, sobald der Tooltip-Text identisch ist.

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
42/100

Neue Issues direkt in Ihr Postfach

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