callbacks: Callbacks

Description Usage Arguments See Also Examples

Description

Binds events to chart interactions.

Usage

1
2
3
e_on(e, query, handler, event = "click")

e_off(e, query, handler, event = "click")

Arguments

e

An echarts4r object as returned by e_charts.

query

Condistion that triggers the handler

handler

JavaSscript handler, passed to JS.

event

Event that triggers the handler.

See Also

official documentation

Examples

1
2
3
4
5
6
7
cars %>% 
  e_charts(speed) %>% 
  e_scatter(dist) %>% 
  e_on(
    list(seriesName = "dist"),
    "function(){alert('Serie clicked')}"
  )

JohnCoene/echarts4r documentation built on Sept. 18, 2019, 2:24 a.m.