eanimation: Add animations

Description Usage Arguments Details Examples

Description

Add animations

Usage

1
2
3
eanimation(p, animation = TRUE, addDataAnimation = TRUE,
  animationThreshold = 2000, animationDuration = 2000,
  animationDurationUpdate = 500, animationEasing = "ExponentialOut", ...)

Arguments

p

an echart objects.

animation

whether to show the initial animation.

addDataAnimation

specifies whether the dynamic data interface animation will be enabled.

animationThreshold

threshold of animated elements.

animationDuration

duration of animation, in ms.

animationDurationUpdate

duration of the update animation, in ms.

animationEasing

easing effect, see details for valid values.

...

any other options.

Details

Examples

1
2
3
4
5
6
7
8
9
mtcars %>%
  echart(mpg) %>%
  ebar(qsec) %>%
  eanimation(animationEasing = "BounceIn")

mtcars %>%
  echart(mpg) %>%
  escatter(qsec, drat, symbolSize = 20) %>%
  eanimation(animationEasing = "CubicInOut")

JohnCoene/echarts documentation built on May 7, 2019, 11:58 a.m.