← ClaudeAtlas

chartjs-animationslisted

This skill should be used when the user asks "Chart.js animations", "Chart.js easing", "Chart.js animation duration", "Chart.js animation callbacks", "Chart.js transitions", "Chart.js animation loop", "progressive line animation", "Chart.js animation delay", "disable Chart.js animation", "Chart.js onComplete", "Chart.js onProgress", or needs help configuring animations in Chart.js v4.5.1.
Riltonbn/chartjs-expert · ★ 0 · Web & Frontend · score 72
Install: claude install-skill Riltonbn/chartjs-expert
# Chart.js Animations (v4.5.1) Complete guide to configuring and customizing animations in Chart.js. ## Animation Basics Chart.js animates charts automatically. Animations provide visual feedback during chart initialization, data updates, and user interactions. ### Animation Configuration Structure Three main configuration keys: | Key | Purpose | Example Use Case | |-----|---------|------------------| | `animation` | Global animation settings | Duration, easing, delay | | `animations` | Property-specific animations | Animate only x-axis values | | `transitions` | Mode-specific animations | Custom hover behavior | ### Configuration Locations ```javascript // Global configuration (all charts) Chart.defaults.animation.duration = 2000; // Chart instance configuration const chart = new Chart(ctx, { options: { animation: { duration: 1500, easing: 'easeInOutQuart' } } }); // Dataset-specific configuration datasets: [{ label: 'Sales', data: [10, 20, 30], animation: { duration: 3000 // This dataset animates slower } }] ``` ## Main Animation Options Namespace: `options.animation` | Option | Type | Default | Description | |--------|------|---------|-------------| | `duration` | number | 1000 | Animation length in milliseconds | | `easing` | string | `'easeOutQuart'` | Easing function name | | `delay` | number | undefined | Delay before animation starts (ms) | | `loop` | boolean | undefined | Loop animation endlessly | ### Basic Example