hc_add_series: Adding data to highchart objects

Description Usage Arguments Examples

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

Description

Adding data to highchart objects

Usage

1

Arguments

hc

A highchart htmlwidget object.

data

An R object like numeric, list, ts, xts, etc.

...

Arguments defined in https://api.highcharts.com/highcharts/plotOptions.series.

Examples

1
2
3
highchart() %>%
  hc_add_series(data = abs(rnorm(5)), type = "column") %>%
  hc_add_series(data = purrr::map(0:4, function(x) list(x, x)), type = "scatter", color = "orange")

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