Learn R Programming

highcharter (version 0.9.4)

hc_add_series_list: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab