| Title: | Accessible Echarts With Rijksoverheid Styling |
|---|---|
| Description: | Provides accessible, Echart plots and themed visualizations with Rijksoverheid styling. |
| Authors: | ROvis team [cre, aut] |
| Maintainer: | ROvis team <[email protected]> |
| License: | EUPL (>= 1.2) |
| Version: | 0.1.0 |
| Built: | 2026-10-19 12:33:11 UTC |
| Source: | https://github.com/rivm-syso/ROvis.echarts |
ro_e_theme() applies the Rijksoverheid (RO) visual style to
an echarts4r chart. It is the echarts
equivalent of ROvis.ggplot2::ro_gg_theme() and is designed to slot into any echarts4r
pipeline.
The theme is generated at call time from ROvis.utils::ro_color() and ROvis.utils::ro_color_palette().
A custom accessible HTML legend is always included. The native ECharts
legend is replaced automatically to meet the RO accessibility spec.
ro_e_theme( e, palette = "categorical", fixed_aspect = TRUE, font = NULL, renderer = "svg" )ro_e_theme( e, palette = "categorical", fixed_aspect = TRUE, font = NULL, renderer = "svg" )
e |
An echarts4r object (created with |
palette |
Character. Palette to use for series colors. One of
|
fixed_aspect |
Logical. When |
font |
|
renderer |
The renderer to use. One of |
The modified echarts4r object.
Series colors from ro_color_palette() (default: "categorical").
Title in ro_color("lintblauw"), subtitle in ro_color("donkerblauw").
Axis labels and ticks in ro_color("grijs_7").
Horizontal grid lines (value axis); no vertical grid lines.
No axis line or ticks on the value axis.
Custom HTML legend with per-item borders and hover/hidden styles.
ROvis.ggplot2::ro_gg_theme() for the ggplot2 equivalent.
ro_e_keyboard_nav() to add keyboard accessibility on top of the theme.
ROvis.utils::ro_color_palette() to inspect the available palettes.
ROvis.utils::ro_color() to look up individual RO color hex codes.
Other echarts4r:
ro_e_build_keyboard_nav_js(),
ro_e_build_onrender_js(),
ro_e_detect_axis_orientation(),
ro_e_keyboard_nav(),
ro_e_keyboard_nav_axis_js(),
ro_e_keyboard_nav_legend_js(),
ro_e_theme_list()
## Not run: library(echarts4r) mtcars |> e_charts(wt) |> e_scatter(mpg) |> ro_e_theme() ## End(Not run)## Not run: library(echarts4r) mtcars |> e_charts(wt) |> e_scatter(mpg) |> ro_e_theme() ## End(Not run)