Add a theme.

e_theme(e, theme)

e_theme_custom(e, theme)

Arguments

e

An echarts4r object as returned by e_charts.

theme

Theme, see below.

Themes

  • dark

  • vintage

  • westeros

  • essos

  • wonderland

  • walden

  • chalk

  • infographic

  • macarons

  • roma

  • shine

  • purple-passion

  • halloween

See also

Examples

mtcars %>% e_charts(mpg) %>% e_line(disp) %>% e_area(hp) %>% e_x_axis(min = 10) -> p p %>% e_theme("chalk") p %>% e_theme_custom('{"color":["#ff715e","#ffaf51"]}')