Skip to main content
skill

claude-d3js-skill — Claude Code skill: custom charts with d3.js

Tells the agent how to build non-standard d3.js visualisations: network graphs, geographic maps, choreographed transitions. Useful when off-the-shelf charting libraries fall short.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill creative-design/claude-d3js-skill
Open on GitHub

What claude-d3js-skill does

The skill lays out a d3.js workflow: import via import * as d3 from 'd3' or the 7.x CDN build, a choice between direct DOM manipulation and declarative rendering, and a drawing function structured around dimensions, scales, axes and data joins. Responsive sizing gets its own section, with ResizeObserver and a resize handler that returns a cleanup function.

Ready-made patterns cover a bar chart plus force-directed layouts, trees, hierarchies and custom map projections. All of it works in any JavaScript environment — React, Vue, Svelte, plain JS. For 3D the skill points you at Three.js instead, since d3.js won't help there.

The skill file cuts off partway through the bar chart example, so past that point you're leaning on your own d3 knowledge. Install with npx claude-code-templates@latest --skill creative-design/claude-d3js-skill.

What it helps with

  • build a force-directed graph of entity relationships
  • draw a map with a custom projection
  • add smooth transitions between chart states
  • create a chart type no standard library offers
  • redraw a chart when its container resizes

Example prompts for the agent

  • Build an interactive force-directed graph of user connections with d3.js
  • Draw a map with a custom projection and zoom using d3.js
  • Rewrite this chart in d3.js so it animates smoothly when the data updates

How to install claude-d3js-skill

1claude-code-templates

npx claude-code-templates@latest --skill creative-design/claude-d3js-skill

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill claude-d3js-skill -a claude-code

3Manually: put the files in place

~/.claude/skills/claude-d3js-skill/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/claude-d3js-skill/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about claude-d3js-skill

How do I install claude-d3js-skill in Claude?

Run npx claude-code-templates@latest --skill creative-design/claude-d3js-skill. The skill lands at ~/.claude/skills/claude-d3js-skill/SKILL.md.

What does claude-d3js-skill do?

It gives the agent instructions for building custom d3.js visualisations: network graphs, trees, geographic maps, and charts with transitions and interaction.

Which frameworks does the skill support?

Any JavaScript environment: React, Vue, Svelte or plain JS. For 3D visualisations the skill recommends Three.js over d3.js.

Similar skills

Everything for Frontend and UI →

From the same set224

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor