]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Document possible options for animation.easing (#3111)
authormdewilde <mdewilde@users.noreply.github.com>
Sun, 21 Aug 2016 21:00:29 +0000 (23:00 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 21 Aug 2016 21:00:29 +0000 (23:00 +0200)
List all possible values for animation.easing and reference URL with more information (taken from code comment).

docs/01-Chart-Configuration.md

index 7eef8c827928210923bc39850c9a513b9d63827d..fa429c36605813c722cba2dfecfc5800e2a54389 100644 (file)
@@ -296,7 +296,7 @@ The following animation options are available. The global options for are define
 Name | Type | Default | Description
 --- |:---:| --- | ---
 duration | Number | 1000 | The number of milliseconds an animation takes.
-easing | String | "easeOutQuart" | Easing function to use.
+easing | String | "easeOutQuart" | Easing function to use. Available options are: `'linear'`, `'easeInQuad'`, `'easeOutQuad'`, `'easeInOutQuad'`, `'easeInCubic'`, `'easeOutCubic'`, `'easeInOutCubic'`, `'easeInQuart'`, `'easeOutQuart'`, `'easeInOutQuart'`, `'easeInQuint'`, `'easeOutQuint'`, `'easeInOutQuint'`, `'easeInSine'`, `'easeOutSine'`, `'easeInOutSine'`, `'easeInExpo'`, `'easeOutExpo'`, `'easeInOutExpo'`, `'easeInCirc'`, `'easeOutCirc'`, `'easeInOutCirc'`, `'easeInElastic'`, `'easeOutElastic'`, `'easeInOutElastic'`, `'easeInBack'`, `'easeOutBack'`, `'easeInOutBack'`, `'easeInBounce'`, `'easeOutBounce'`, `'easeInOutBounce'`. See [Robert Penner's easing equations](http://robertpenner.com/easing/).
 onProgress | Function | none | Callback called on each step of an animation. Passed a single argument, an object, containing the chart instance and an object with details of the animation.
 onComplete | Function | none | Callback called at the end of an animation. Passed the same arguments as `onProgress`