e_list: List

View source: R/helpers.R

e_listR 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)

echarts4r documentation built on July 9, 2023, 7:26 p.m.