https://github.com/codeyellowbv/chartist-plugin-animation
Default animations plugin for Chartist.js
https://github.com/codeyellowbv/chartist-plugin-animation
Last synced: 8 months ago
JSON representation
Default animations plugin for Chartist.js
- Host: GitHub
- URL: https://github.com/codeyellowbv/chartist-plugin-animation
- Owner: CodeYellowBV
- Created: 2015-03-20T11:49:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T16:23:49.000Z (over 10 years ago)
- Last Synced: 2025-01-16T11:26:55.650Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chartist-plugin-animation
Implements some default animations for [Chartist](https://github.com/gionkunz/chartist-js) charts.
Currently has animations for:
- Linechart
- Barchart
Animation of piecharts is possible after [#204](https://github.com/gionkunz/chartist-js/pull/204) on Chartist is merged.
## Usage
In an example chart:
```js
new Chartist.Bar('.ct-chart', data, {
stackBars: true,
plugins: [
Chartist.plugins.animation({
duration: 2000
})
]
}
});
```
| __Option__ | __Description__ | __Type__ | __Default__ |
| --- | --- | --- | --- |
| `duration` | Length of duration in `ms`. | `integer` | `1000` |