hc_colors: Adding color options to highchart objects

Description Usage Arguments Examples

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)


Search within the highcharter package
Search all R packages, documentation and source code

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

Please suggest features or report bugs with the GitHub issue tracker.

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