Customise chart and background colors.

e_color(e, color = NULL, background = NULL)

Arguments

e

An echarts4r object as returned by e_charts.

color

Vector of colors.

background

Background color.

See also

Examples

mtcars %>% e_charts(drat) %>% e_line(mpg) %>% e_area(qsec) %>% e_color( c("red", "blue"), "#d3d3d3" )