smithery/ljchg12-hue

d3js-visualizations

Create interactive data visualizations using D3.js for charts, graphs, maps, and custom visual analytics

Installation

$ npx skills add smithery/ljchg12-hue --skill d3js-visualizations

Also in this package

Other skills from smithery/ljchg12-hue · top by installs.

npx skills add smithery/ljchg12-hue

Browse all from smithery/ljchg12-hue

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,480 B
  • docs SUMMARY.md 131 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

D3.js Visualizations Skill

Build interactive, web-based data visualizations using D3.js (Data-Driven Documents).

When to Use

  • Interactive charts and graphs
  • Custom data visualizations
  • Geographic maps
  • Network diagrams
  • Real-time dashboards

Core Capabilities

  • Bar, line, scatter, area charts
  • Force-directed graphs
  • Geographic maps (choropleth, bubble maps)
  • Hierarchical data (treemaps, sunburst)
  • Custom SVG visualizations
  • Data transitions and animations
  • Interactive tooltips and zoom

Example: Bar Chart

import * as d3 from 'd3';

const data = [30, 86, 168, 281, 303, 365];

const svg = d3.select('svg');
const width = 800;
const height = 400;

const x = d3.scaleBand()
  .domain(data.map((d, i) => i))
  .range([0, width])
  .padding(0.1);

const y = d3.scaleLinear()
  .domain([0, d3.max(data)])
  .range([height, 0]);

svg.selectAll('rect')
  .data(data)
  .join('rect')
  .attr('x', (d, i) => x(i))
  .attr('y', d => y(d))
  .attr('width', x.bandwidth())
  .attr('height', d => height - y(d))
  .attr('fill', 'steelblue');

Best Practices

  • Use responsive SVG viewBox
  • Optimize for performance (large datasets)
  • Add accessible labels
  • Implement smooth transitions
  • Handle edge cases

Resources