This walks you through building custom data visualizations with d3.js, from basic bar charts to complex network diagrams and geographic maps. It covers two integration patterns: direct DOM manipulation for full d3 features, or using d3 just for calculations while your framework handles rendering. The code examples follow a consistent structure with proper margins, scales, and axes, plus responsive sizing with ResizeObserver. It's aimed at situations where standard charting libraries don't cut it and you need fine-grained control over SVG elements, transitions, or interactions. The guidance works across vanilla JavaScript, React, Vue, and other environments.

skills.sh installs
987
GitHub stars
253
last updated
Aug 21, 2026

Install

$ npx -y skills add chrisvoncsefalvay/claude-d3js-skill --skill d3-viz --agent claude-code

Installs into .claude/skills of the current project.

Files

D3.js Visualisation

Overview

This skill provides guidance for creating sophisticated, interactive data visualisations using d3.js. D3.js (Data-Driven Documents) excels at binding data to DOM elements and applying data-driven transformations to create custom, publication-quality visualisations with precise control over every visual element. The techniques work across any JavaScript environment, including vanilla JavaScript, React, Vue, Svelte, and other frameworks.

When to use d3.js

Use d3.js for:

  • Custom visualisations requiring unique visual encodings or layouts
  • Interactive explorations with complex pan, zoom, or brush behaviours
  • Network/graph visualisations (force-directed layouts, tree diagrams, hierarchies, chord diagrams)
  • Geographic visualisations with custom projections
  • Visualisations requiring smooth, choreographed transitions
  • Publication-quality graphics with fine-grained styling control
  • Novel chart types not available in standard libraries

Consider alternatives for:

  • 3D visualisations - use Three.js instead

Core workflow

1. Set up d3.js

Import d3 at the top of your script:

import * as d3 from 'd3';

Sponsors

Details

Repository
github.com/chrisvoncsefalvay/claude-d3js-skill
Categories
Frontend Development, Design & UI/UX
First seen
Jun 3, 2026
1facebook avatarflowfacebook/reactflow987skills.sh installs
2forcedotcom avatarvalidating-sldsforcedotcom/sf-skillsAudit Lightning Web Components for SLDS compliance and produce a scored quality report. Runs the SLDS linter, analyzes CSS for theming hook usage and pairing, c987skills.sh installs
3alonw0 avatarweb-asset-generatoralonw0/web-asset-generatorGenerate web assets including favicons, app icons (PWA), and social media meta images (Open Graph) for Facebook, Twitter, WhatsApp, and LinkedIn. Use when users981skills.sh installs
4thienanblog avatarlaravel-11-12-app-guidelinesthienanblog/awesome-ai-agent-skillsGuidelines and workflow for working on Laravel 11 or Laravel 12 applications across common stacks (API-only or full-stack), including optional Docker Compose/Sa980skills.sh installs
5yofine avatarblueprinteryofine/skillsGenerate technical diagrams using HTML/CSS in Flat Engineering Blueprint style. Use when the user wants to create architecture diagrams, system diagrams, flowch979skills.sh installs
6angular avatarreference-signal-formsangular/angularExplains the mental model and architecture of the code under `packages/forms/signals`. You MUST use this skill any time you plan to work with code in `packages/977skills.sh installs