Animation
Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes.
Namespace: options.animation
or options.animations[animation]
Animation¶
Set animation like: "x"
, "y"
, "borderWidth"
, "radius"
, "tension"
Duration¶
The number of milliseconds an animation takes. Default 1000
Easing¶
Easing function to use. Default 'easeOutQuart'
Delay¶
Delay before starting the animations.
Loop¶
If set to true
, the animations loop endlessly.
OnProgress¶
Callback called on each step of an animation.
OnComplete¶
Callback called when all animations are completed.
From¶
Start value for the animation. Current value is used when undefined.
Or, number: Or, color:To¶
End value for the animation. Updated value is used when undefined
Or, number: Or, color: