Adding and removing series from highchart objects

Description

Adding and removing series from highchart objects

Usage

1

Arguments

hc

A highchart htmlwidget object.

...

Arguments defined in http://api.highcharts.com/highcharts#chart.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data("citytemp")

hc <- highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_series(name = "Tokyo", data = citytemp$tokyo) %>% 
  hc_add_series(name = "New York", data = citytemp$new_york) 

hc 

hc %>% 
  hc_add_series(name = "London", data = citytemp$london, type = "area") %>% 
  hc_rm_series(name = "New York")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.