ec.upd | R Documentation |
And improve readability by chaining commands after ec.init
ec.upd(wt, ...)
wt |
An echarty widget |
... |
R commands to update chart option lists |
ec.upd makes changes to chart elements already set by ec.init.
It should be always piped after ec.init.
Numerical indexes for series,visualMap,etc. are JS-counted (0,1...)
Replaces syntax
p <- ec.init(...)
p$x$opts$series <- ...
with
ec.init(...) |>
# set or preset chart params
ec.upd({series <- ...}) # update params thru R commands
Orange |> dplyr::group_by(Tree) |>
ec.init(series.param= list(universalTransition= list(enabled=TRUE))) |>
ec.upd({
series <- lapply(series, function(ss) { ss$groupId <- ss$name; ss })
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.