e_list {echarts4r}R Documentation

List

Description

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

Usage

e_list(e, list, append = FALSE)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

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)

[Package echarts4r version 0.4.5 Index]