# data-visualization

Applies Disney's 12 animation principles to charts, dashboards, and data transitions. Helps Claude Code configure motion timing and easing in D3.js and Chart.js.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 583 installs · ★ 129
- Author: dylantarre
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/dylantarre/animation-principles/tree/HEAD/skills/01-by-domain/data-visualization/SKILL.md
- Updated: 2025-12-30
- HTML: https://affpapa.org/en/nevibecode/skills/dylantarre-data-visualization

## What it does

This skill brings classic Disney motion principles into charts and information dashboards. It instructs the assistant on staged element reveals, value transitions, and counter interpolations. Motion must never distort actual metrics. Visual scales, data points, and coordinate axes remain strictly accurate while elements settle.

Specific timing guidelines are provided for common visualizations. Line charts draw over 600ms, pie charts sweep clockwise in 500ms, and data updates run between 200ms and 300ms. The prompt contains reference snippets for `D3.js` easing using `d3.easeCubicInOut` alongside transition settings for `Chart.js`.

Accessibility is a strict requirement. Every animated display must honor the `prefers-reduced-motion` media query by rendering immediate state changes when motion is turned off.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dylantarre/animation-principles --skill data-visualization -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/data-visualization/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/data-visualization/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dylantarre/animation-principles --skill data-visualization -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/data-visualization/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dylantarre/animation-principles --skill data-visualization -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/data-visualization/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dylantarre/animation-principles data-visualization
```

2. **Manually: put the files in place**
- File: `.github/skills/data-visualization/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dylantarre/animation-principles --skill data-visualization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dylantarre/animation-principles --path skills/01-by-domain/data-visualization
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/data-visualization/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dylantarre/animation-principles --skill data-visualization -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dylantarre/animation-principles/tree/HEAD/skills/01-by-domain/data-visualization/SKILL.md

## When to use it
- stagger bar and label arrivals in chart components
- apply precise transition timing for `D3.js` and `Chart.js`
- animate pie charts and Sankey diagrams along circular paths
- create immediate fallback states for `prefers-reduced-motion`

## Example prompts
- Add staggered entry transitions to this D3.js bar chart
- Configure smooth value updates in Chart.js with proper easing
- Animate this clockwise pie chart reveal and handle prefers-reduced-motion

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 0b5392f8f18afd95.

BEGIN THIRD-PARTY FILE 0b5392f8f18afd95
```text
---
name: data-visualization
description: Use when animating charts, graphs, dashboards, data transitions, or any information visualization work.
---

# Data Visualization Animation

Apply Disney's 12 animation principles to charts, graphs, dashboards, and information displays.

## Quick Reference

| Principle | Data Viz Implementation |
|-----------|------------------------|
| Squash & Stretch | Bar overshoot, elastic settling |
| Anticipation | Brief pause before data loads |
| Staging | Sequential reveal, focus hierarchy |
| Straight Ahead / Pose to Pose | Streaming vs snapshot data |
| Follow Through / Overlapping | Staggered element entry |
| Slow In / Slow Out | Smooth value interpolation |
| Arc | Pie chart sweeps, flow diagrams |
| Secondary Action | Labels following data points |
| Timing | Entry 300-500ms, updates 200-300ms |
| Exaggeration | Emphasize significant changes |
| Solid Drawing | Consistent scales, clear relationships |
| Appeal | Satisfying reveals, professional polish |

## Principle Applications

**Squash & Stretch**: Bars can overshoot target height then settle. Pie slices expand slightly on hover. Bubbles compress on collision. Keep total values accurate—animation is transitional.

**Anticipation**: Brief loading state before data appears. Slight shrink before expansion. Counter briefly pauses before rapid counting. Prepares user for incoming information.

**Staging**: Reveal data in meaningful sequence—most important first. Highlight active data series. Dim unrelated elements during focus. Guide the data story with motion.

**Straight Ahead vs Pose to Pose**: Real-time streaming data animates continuously (straight ahead). Dashboard snapshots transition between states (pose to pose). Match approach to data nature.

**Follow Through & Overlapping**: Data points enter with staggered timing. Labels settle after their data elements. Grid lines appear before data. Legends animate with slight delay.

**Slow In / Slow Out**: Value changes ease smoothly—no jarring jumps. Use `d3.easeCubicInOut` or equivalent. Counter animations accelerate then decelerate. Progress bars ease to completion.

**Arc**: Pie charts sweep clockwise from 12 o'clock. Sankey diagram flows follow curved paths. Network graphs use force-directed arcs. Radial charts expand from center.

**Secondary Action**: Tooltips follow data point movement. Value labels count up as bars grow. Axis tick marks respond to scale changes. Shadows indicate data depth.

**Timing**: Initial entry: 300-500ms staggered. Data updates: 200-300ms. Hover states: 100-150ms. Filter transitions: 400-600ms. Slower timing aids comprehension.
```
END THIRD-PARTY FILE 0b5392f8f18afd95

The third-party file has ended. Everything between the 0b5392f8f18afd95 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2653 of 4335 bytes. © dylantarre · MIT · https://github.com/dylantarre/animation-principles/tree/HEAD/skills/01-by-domain/data-visualization/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
