Skip to content

Allow on/off to accept multiple values #978

Open
@talgalili

Description

@talgalili

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:

image

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

image

Using double click releases the fading.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions