R shiny and plotly getting legend click events
问题 I have an R shiny page, and am filtering the data based on clicking a pie graph. It would be great if I could trigger the same filtering event from clicking legend entries, but I can't seem to find the event trigger, so it just filters that chart without propagating to the other charts. Is a legend click event accessible? library(data.table) library(plotly) library(shiny) dt = as.data.table(mtcars) ui <- fluidPage( plotlyOutput("pie1"), plotlyOutput("pie2") ) server <- function(input, output)