And improve readability by chaining commands after ec.init
Usage
ec.upd(wt, ...)
Arguments
wt
An echarty widget
...
R commands to update chart option lists
Details
ec.upd makes changes to chart elements already set by ec.init.
It should be always piped after ec.init.
All numerical indexes for series,visualMap,etc. are JS-counted (start at 0)
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