Skip to contents

Builtin themes for Charts

Usage

v_theme_builtin(vc, name)

Arguments

vc

An htmlwidget created with vchart().

name

Name of the theme to use, see available themes online.

Value

A vchart() htmlwidget object.

Examples


library(vchartr)

vchart(top_generation) %>%
  v_bar(aes(country, electricity_generation)) %>%
  v_theme_builtin("dark")
vchart(top_generation) %>% v_bar(aes(country, electricity_generation)) %>% v_theme_builtin("vScreenVolcanoBlue")
vchart(top_generation) %>% v_bar(aes(country, electricity_generation)) %>% v_theme_builtin("vScreenClean")
vchart(top_generation) %>% v_bar(aes(country, electricity_generation)) %>% v_theme_builtin("chartHubLight")