e_color | R Documentation |
Customise chart and background colors.
e_color(e, color = NULL, background = NULL, append = TRUE)
## S3 method for class 'echarts4r'
e_color(e, color = NULL, background = NULL, append = TRUE)
## S3 method for class 'echarts4rProxy'
e_color(e, color = NULL, background = NULL, append = TRUE)
e |
An |
color |
Vector of colors. |
background |
Background color. |
append |
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
mtcars |>
e_charts(drat) |>
e_line(mpg) |>
e_area(qsec) |>
e_color(
c("red", "blue"),
"#d3d3d3"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.