hc_add_series: Adding data to highchart objects

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

hc_add_seriesR Documentation

Adding data to highchart objects

Description

Adding data to highchart objects

Usage

hc_add_series(hc, data = NULL, ...)

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


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")

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