hc_colors: 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)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.