Experimental. Set the shadshiny categorical colors and tokenised text on an echarts4r chart. A text style already set on the chart, such as its font family, is kept; only its color changes. Requires echarts4r.
Arguments
- e
An echarts4r object.
- preset
A preset name or
shad_current_theme()list.- dark
If
TRUE, use dark-mode colors.
See also
Other shadshiny theming:
shad_chart_colors(),
shad_current_theme(),
shad_theme(),
shad_theme_from_registry(),
shad_theme_ggplot2(),
shad_theme_plotly(),
shad_theme_scope(),
shad_tokens()
Examples
if (requireNamespace("echarts4r", quietly = TRUE)) {
chart <- echarts4r::e_charts(mtcars, wt)
chart <- echarts4r::e_scatter(chart, mpg)
chart <- shad_theme_echarts4r(chart, preset = "blue")
}