Adding color options to highchart objects

Description

An array containing the default colors for the chart's series. When all colors are used, new colors are pulled from the start again.

Usage

1

Arguments

hc

A highchart htmlwidget object.

colors

A vector of colors.

Examples

1
2
3
4
5
6
7
library("viridisLite")

cols <- viridis(3)
cols <- substr(cols, 0, 7)

highcharts_demo() %>% 
  hc_colors(cols)

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