simply pass a list of options, similar to a JSON.

e_list(e, list, append = FALSE)

Arguments

e

An echarts4r object as returned by e_charts.

list

A list of options passed to setOptions.

append

if TRUE the list is appended to the options, otherwise it overwrites everything.

Examples

N <- 20 # data points opts <- list( xAxis = list( type = "category", data = LETTERS[1:N] ), yAxis = list( type = "value" ), series = list( list( type = "line", data = round(runif(N, 5, 20)) ) ) ) e_charts() %>% e_list(opts)