Hover information partially disappear when providing color input
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Thanks for this package, it is very useful!
When using it, I encountered a kind of weird bug.
The two following plots should be identical and behave in the same way, except that the second one has colored points.
library(plotly)
plot_ly() %>%
add_markers(
x = c(1,2,3), y = c(1,2,3), z = c(1,2,3))
plot_ly() %>%
add_markers(
x = c(1,2,3), y = c(1,2,3), z = c(1,2,3), color = c(1,2,3))
For the first plot, all the values appear when I hover over all 3 points, as expected.
However, for the second plot, I can only hover over the second point; no information appears when I hover over the first nor the third point. Here are two screenshots that I made with the second plot (the one that has the bug).
The expected behavior is that the similar type of information would appear for all points.
More generally, I have the impression than when doing a scatter plot with $n$ points, I can only get the hover information of $n-2$ of them if they are colored. For example, the hoverinfo do not appear for the "extreme" points of this plot:
n = 10
plot_ly() %>%
add_trace(
x = 1:n, y = 1:n, z = 1:n, color = 1:n, type="scatter3d", mode="markers")
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 damit, die beiden Beispiele mit plot_ly()/add_markers() und das scatter3d-Beispiel mit n = 10 auszuführen, um die fehlenden Hover-Informationen an den Extrempunkten zu reproduzieren. Vergleiche das Hover-Verhalten für eingefärbte und nicht eingefärbte Punkte; abgeschlossen ist es, wenn die Hover-Informationen für jeden Punkt konsistent erscheinen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 32/100