Allow on/off to accept multiple values
Abierto
Nadie ha tomado este issue todavía.
enhancement
- Lenguaje dominante
- R
- Estrellas
- 2.7k
- Forks
- 641
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Code:
library(plotly)
library(crosstalk)
D <- SharedData$new(iris, key = ~Species)
scatter <- ggplot(data=D, aes(x = Sepal.Length, y = Sepal.Width))
p <- scatter + geom_point(aes(color=Species, shape=Species)) +
xlab("Sepal Length") + ylab("Sepal Width") +
ggtitle("Sepal Length-Width")
highlight(ggplotly(p), on = "plotly_selected", off = 'plotly_deselect')
Step 1, I select the red group:

Step 2, I click somewhere else in the plot: (here is the BUG, it acts the same as off = 'plotly_doubleclick' )

Using double click releases the fading.
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
Start by running the supplied R example with highlight(ggplotly(p), on = "plotly_selected", off = "plotly_deselect") and compare it with the double-click behavior described. Trace how highlight handles the on and off arguments; done means multiple values are accepted and clicking elsewhere no longer behaves like plotly_doubleclick.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, r
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100