Description Usage Arguments Details Examples
View source: R/highcharts-api-add.R
Add modules or plugin dependencies to highcharts objects
1 | hc_add_dependency(hc, name = "plugins/annotations.js")
|
hc |
A |
name |
The partial path to the plugin or module,
example: |
See vignette("modules")
1 2 3 4 5 6 7 8 9 10 11 | data(mpg, package = "ggplot2")
hchart(mpg, "point", hcaes(displ, hwy),
regression = TRUE,
regressionSettings = list(type = "polynomial", order = 5, hideInLegend = TRUE)
) %>%
hc_add_dependency("plugins/highcharts-regression.js")
hchart(mpg, "point", hcaes(displ, hwy, group = drv), regression = TRUE) %>%
hc_colors(c("#d35400", "#2980b9", "#2ecc71")) %>%
hc_add_dependency("plugins/highcharts-regression.js")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.