# d3-visualization

d3-visualization is a Claude Code skill for building D3.js charts, maps, network diagrams and hierarchies with animation and interactivity. It gives control over visual details beyond ready-made libraries.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 126 installs · ★ 203 repo stars
- Author: lyndonkl
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lyndonkl/claude/tree/HEAD/skills/d3-visualization/SKILL.md
- Updated: 2026-09-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/lyndonkl-d3-visualization

## What it does

Skill provides step-by-step workflows: creating basic charts (bars, lines, scatter), updating with new data, advanced layouts like force-directed graphs and geographic maps. Inside are checklists by step, code samples for data joins, scales, axes, shape generators, animations and interactions (zoom, drag, brush). Without D3 in the project, the skill won't work: library must be installed via npm or loaded from CDN. Ready-made libraries like Chart.js don't give control at the SVG element level, while D3 lets you manage every node when you need it.

Skill resources cover container setup, data loading, scales and axes, path generation, layouts (networks, trees, maps), transitions and interactions. Common patterns for tooltips, updates and element composition are extracted into separate files. Workflows estimate time: basic chart takes 1–2 hours, data update takes 30 minutes.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill d3-visualization -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill d3-visualization -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill d3-visualization -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lyndonkl/claude skills/d3-visualization
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill d3-visualization -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lyndonkl/claude --path skills/d3-visualization
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill d3-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/lyndonkl/claude/tree/HEAD/skills/d3-visualization/SKILL.md

## When to use it
- build bar, line or scatter chart with axes and labels
- update chart with new data and smooth transition animation
- create force-directed graph to visualize networks and connections
- draw geographic map with points or region fills
- add zoom, drag and tooltips to interactive chart

## Example prompts
- Build a bar chart of sales by month from `sales.csv` with axes and labels
- Make a force-directed graph from JSON with nodes and links, add node dragging
- Update the temperature line chart with new data, animate transition over 500 ms

## Similar
- [d3-data-visualization](https://affpapa.org/en/nevibecode/skills/d3-data-visualization.md) — skill · 13 installs
- [data-visualization](https://affpapa.org/en/nevibecode/skills/dylantarre-data-visualization.md) — skill · 661 installs
- [d3-animated-data-visualization](https://affpapa.org/en/nevibecode/skills/d3-animated-data-visualization.md) — skill · 143 installs
- [grammar-of-graphics-and-declarative-visualization](https://affpapa.org/en/nevibecode/skills/grammar-of-graphics-and-declarative-visualization.md) — skill · 7 installs
- [Data Visualization taste](https://affpapa.org/en/nevibecode/prompts/data-visualization-taste.md) — prompt · ★ 178201 repo stars
- [d3js-visualization](https://affpapa.org/en/nevibecode/skills/d3js-visualization.md) — skill · 189 installs

## Other versions with the same name
- [d3-visualization · nexu-io](https://affpapa.org/en/nevibecode/skills/d3-visualization.md) — 3300 installs

From the same set: [lyndonkl/claude](https://affpapa.org/en/nevibecode/by/lyndonkl/claude.md) — 49 cards

---
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
