From: mdewilde Date: Sun, 21 Aug 2016 21:00:29 +0000 (+0200) Subject: Document possible options for animation.easing (#3111) X-Git-Tag: v2.2.2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1995473f02fde0cf4b840f642f45634122a3a48;p=thirdparty%2FChart.js.git Document possible options for animation.easing (#3111) List all possible values for animation.easing and reference URL with more information (taken from code comment). --- diff --git a/docs/01-Chart-Configuration.md b/docs/01-Chart-Configuration.md index 7eef8c827..fa429c366 100644 --- a/docs/01-Chart-Configuration.md +++ b/docs/01-Chart-Configuration.md @@ -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`