How to hide the series when clicking a legend in googlevis line chart that is embedded in shiny

Viewed 1198

I have a shiny app with embedded google line charts using the googlevis package. I need to be able to hide a line when clicking on it's legend key. I found this code on how to do it in google charts:

$http://jsfiddle.net/xDUPF/4/light/$

How can I introduce this behavior to a graph created using shiny? can I use the "jscode" parameter for it?

1 Answers
Related