Allow on/off to accept multiple values
Aberta
Ninguém assumiu esta issue ainda.
enhancement
- Linguagem predominante
- R
- Estrelas
- 2.7k
- Forks
- 641
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, r
- Domínio
- data-visualization
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100