Hover information partially disappear when providing color input
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- R
- Estrellas
- 2.7k
- Forks
- 641
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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")
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza ejecutando los dos ejemplos de plot_ly()/add_markers() y el ejemplo de scatter3d con n = 10 para reproducir la información de hover que falta en los puntos extremos. Compara el comportamiento del hover para los puntos coloreados y sin colorear; se considera terminado cuando la información de hover aparece de forma consistente para cada punto.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- r
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 32/100