|
86 | 86 | #' dim = runif(3, 1, 100), |
87 | 87 | #' nam = c('Brazil','China','India') |
88 | 88 | #' ) |
89 | | -#' cns |> group_by(nam) |> ec.init(load= 'world', |
90 | | -#' tl.series= list(type='map', |
| 89 | +#' cns |> group_by(nam) |> ec.init(load= 'world', timeline= list(s=TRUE), |
| 90 | +#' series.param= list(type='map', |
91 | 91 | #' encode=list(value='val', name='nam')), |
92 | 92 | #' toolbox= list(feature= list(restore= list())), |
93 | 93 | #' visualMap= list(calculable=TRUE, dimension=2) |
|
282 | 282 | #' xAxis= list(type= 'category', name= 'tree'), |
283 | 283 | #' yAxis= list(max= max(Orange$circumference)), |
284 | 284 | #' timeline= list(autoPlay= TRUE), |
285 | | -#' tl.series= list(type= 'bar', encode= list(x='Tree', y='circumference')) |
| 285 | +#' series.param= list(type= 'bar', encode= list(x='Tree', y='circumference')) |
286 | 286 | #' ) |> ec.upd({ |
287 | 287 | #' options <- lapply(options, |
288 | | -#' function(o) { o$title$text <- paste('age',o$title$text,'days'); o }) |
| 288 | +#' function(o) { |
| 289 | +#' vv <- o$series[[1]]$datasetIndex +1; |
| 290 | +#' vv <- dataset[[vv]]$transform$config[["="]] |
| 291 | +#' o$title$text <- paste('age',vv,'days'); |
| 292 | +#' o }) |
289 | 293 | #' }) |
290 | 294 | #' |
291 | 295 | #' |
|
298 | 302 | #' color= c("blue","purple","red","gold","blue","purple","red","gold") |
299 | 303 | #' ) |
300 | 304 | #' df |> group_by(group) |> ec.init( |
301 | | -#' preset= FALSE, |
302 | | -#' legend= list(selectedMode= "single"), |
303 | | -#' tl.series= list(type= 'pie', roseType= 'radius', |
304 | | -#' itemStyle= list(color=ec.clmn(5)), |
305 | | -#' label= list(formatter=ec.clmn(4)), |
306 | | -#' encode=list(value='value', itemName='type')) |
| 305 | +#' preset= FALSE, legend= list(selectedMode= "single"), |
| 306 | +#' timeline= list(show=TRUE), |
| 307 | +#' series.param= list(type= 'pie', roseType= 'radius', |
| 308 | +#' itemStyle= list(color=ec.clmn(5)), |
| 309 | +#' label= list(formatter=ec.clmn(4)), |
| 310 | +#' encode=list(value='value', itemName='type')) |
307 | 311 | #' ) |
308 | 312 | #' |
309 | 313 | #' |
|
0 commit comments