powered by
Adding data to highchart objects
hc_add_series(hc, data = NULL, ...)
A highchart htmlwidget object.
highchart
htmlwidget
An R object like numeric, list, ts, xts, etc.
Arguments defined in https://api.highcharts.com/highcharts/plotOptions.series.
# NOT RUN { 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") # }
Run the code above in your browser using DataLab