Skip to contents

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)