add_theme_dependency: Add theme dependency

Description Usage Arguments Value Examples

Description

Add the 'theme' dependency to an htmlwidget. You can only manipulate the htmlwidget if you call the method 'plot' with an rAmChart.

Usage

1
2
3
4
add_theme_dependency(
  widget,
  theme_js = c("light.js", "patterns.js", "dark.js", "chalk.js")
)

Arguments

widget

An htmlwidget.

theme_js

A character indicating the JS file dependency.

Value

Return the updated htmlwidget.

Examples

1
2
library(pipeR)
amPlot(1:10, theme = "dark") 

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.