Skip to content

updateFilter() can't remove entire traces #950

@cpsievert

Description

@cpsievert

From http://stackoverflow.com/questions/43417374/crosstalks-filter-select-doesnt-filter-the-graph

library(crosstalk)
library(ggplot2)
library(gapminder)
library(plotly)

sd <- SharedData$new(gapminder)
w <- filter_select("country", "Country:", sd, ~ country)

g <- ggplot(sd, aes(year, lifeExp, color = country, group = country)) +
  geom_line()
gg <- ggplotly(g)

bscols(w, gg)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions