powered by
Customise chart and background colors.
e_color(e, color = NULL, background = NULL, append = TRUE)# S3 method for echarts4r e_color(e, color = NULL, background = NULL, append = TRUE)# S3 method for echarts4rProxy e_color(e, color = NULL, background = NULL, append = TRUE)
# S3 method for echarts4r e_color(e, color = NULL, background = NULL, append = TRUE)
# S3 method for echarts4rProxy e_color(e, color = NULL, background = NULL, append = TRUE)
An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.
echarts4r
e_charts
echarts4rProxy
Vector of colors.
Background color.
Only applicable to `echarts4rProxy`. Whether to append the `color` to the existing array (vector) or colors or to replace it.
e_theme, Official color documentation, Official background documentation
e_theme
mtcars |> e_charts(drat) |> e_line(mpg) |> e_area(qsec) |> e_color( c("red", "blue"), "#d3d3d3" )
Run the code above in your browser using DataLab