There are a number of new features brought by version 5 of echarts.js, not all are showcased here, see the official changelog for more information.
Darkmode helps when using dark backgrounds, it’ll automatically re-color labels, grid lines, legend text, etc.
Decal provides a new visual type that does not only augment aria scenarios but also enrich visual effects.
Visual improvements to the datazoom feature.
e_charts(mtcars, qsec) %>%
e_scatter(mpg, wt) %>%
e_datazoom(startValue = 14)
Many improvements to labels were added.
mtcars %>%
tibble::rownames_to_column("model") %>%
e_charts(model) %>%
e_bar(
mpg,
label = list(
formatter = '{c} {name|{a}}',
show = TRUE,
rotate = 90,
align = "left",
verticalAlign = "middle",
position = "insideBottom",
rich = list(name = list())
)
)
There are also new options such as labelLine
and labelLayout
.