hc_add_series_list: Shortcut for data series from a list of data series

View source: R/highcharts-api-add.R

hc_add_series_listR Documentation

Shortcut for data series from a list of data series

Description

Shortcut for data series from a list of data series

Usage

hc_add_series_list(hc, x)

Arguments

hc

A highchart htmlwidget object.

x

A list or a data.frame of series.

Examples


ds <- lapply(seq(5), function(x) {
  list(data = cumsum(rnorm(100, 2, 5)), name = x)
})

highchart() %>%
  hc_plotOptions(series = list(marker = list(enabled = FALSE))) %>%
  hc_add_series_list(ds)

jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.