hc_colors: Adding color options to highchart objects

Description Usage Arguments Examples

View source: R/api-hc.R

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)

highcharter documentation built on May 19, 2017, 11:50 p.m.

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