e_animation: Animation

Description Usage Arguments See Also Examples

View source: R/opts.R

Description

Customise animations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
e_animation(
  e,
  show = TRUE,
  threshold = NULL,
  duration = NULL,
  easing = NULL,
  delay = NULL,
  duration.update = NULL,
  easing.update = NULL,
  delay.update = NULL
)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

show

Set to show animation.

threshold

Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.

duration

Duration of the first animation.

easing

Easing method used for the first animation.

delay

Delay before updating the first animation.

duration.update

Time for animation to complete.

easing.update

Easing method used for animation.

delay.update

Delay before updating animation.

See Also

Additional arguments

Examples

1
2
3
4
mtcars %>%
  e_charts(mpg) %>%
  e_area(drat) %>%
  e_animation(duration = 10000)

Example output



echarts4r documentation built on March 7, 2021, 5:06 p.m.