callbacks | R Documentation |
Binds events to chart interactions.
e_on(e, query, handler, event = "click")
e_off(e, query, handler, event = "click")
e |
An |
query |
Condistion that triggers the handler |
handler |
JavaSscript handler, passed to JS. |
event |
Event that triggers the handler. |
cars |>
e_charts(speed) |>
e_scatter(dist) |>
e_on(
list(seriesName = "dist"),
"function(){alert('Serie clicked')}"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.