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

Description Usage Arguments Examples

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

Description

Shortcut for data series from a list of data series

Usage

1

Arguments

hc

A highchart htmlwidget object.

x

A list or a data.frame of series.

Examples

1
2
3
4
5
6
7
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)

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.