Skip to main content
skill CX Codex

data-visualizer · oakoss — Claude Code skill: what it does, how to install

data-visualizer guides chart and dashboard development using Recharts, Chart.js, or D3.js with built-in accessibility rules.

MIT 133 installs ★ 29 updated 2026-08-17

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add oakoss/agent-skills --skill data-visualizer -a claude-code
Open on GitHub

What data-visualizer does

The skill guides agent decision-making when building charts, dashboards, and live visual feeds. It sets boundaries between libraries: Recharts handles standard React components, Chart.js fits framework-agnostic setups, and D3.js serves custom visualizations requiring total SVG control. Patterns include KPI card grids, streaming WebSocket views, and drill-down interactions.

It explicitly enforces best practices on common rendering traps. For instance, live streaming graphs must have animations disabled via isAnimationActive={false}, pie charts are capped at 5–7 slices, and color palettes must meet WCAG AA standards.

What it helps with

  • Select the fitting chart library between Recharts, Chart.js, and D3.js
  • Build responsive KPI dashboards with interactive filtering
  • Render live WebSocket streams without UI lag from animations
  • Format numbers via Intl.NumberFormat and enforce accessible palettes

Example prompts for the agent

  • Build an executive KPI dashboard in React using Recharts
  • Create a live updating line chart with animations turned off
  • Implement an accessible donut chart grouping slices beyond seven

How to install data-visualizer

1Skills CLI (Vercel)

npx skills add oakoss/agent-skills --skill data-visualizer -a claude-code

2Manually: put the files in place

~/.claude/skills/data-visualizer/SKILL.md

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

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

Questions about data-visualizer

How to install data-visualizer in Claude Code?

Run npx skills add oakoss/agent-skills --skill data-visualizer -a claude-code.

What does data-visualizer do?

It instructs the coding assistant on selecting suitable chart types, structuring dashboards, and avoiding layout bugs like fixed dimensions.

When does the skill recommend Chart.js over Recharts?

Chart.js is favored for framework-agnostic projects needing a lighter tree-shakeable bundle around 68KB, whereas Recharts is native to React.

Source text

SKILL.md · MIT
---
name: data-visualizer
description: 'Charts, dashboards, and data visualizations using Recharts, Chart.js, and D3.js. Use when building charts, dashboards, or interactive data displays. Use for chart type selection, data storytelling, annotation patterns, responsive design, accessibility, and performance optimization.'
license: MIT
metadata:
  author: oakoss
  version: '1.2'
---

# Data Visualizer

Build charts, dashboards, and interactive data visualizations using modern libraries. Covers Recharts (React), Chart.js (framework-agnostic), and D3.js (custom/advanced).

## Library Selection

| Library  | Best For                            | React   | Custom   | Bundle (gzip)          |
| -------- | ----------------------------------- | ------- | -------- | ---------------------- |
| Recharts | Quick React charts, standard types  | Native  | Limited  | ~139KB                 |
| Chart.js | Framework-agnostic, simple API      | Wrapper | Moderate | ~68KB (tree-shakeable) |
| D3.js    | Custom visualizations, full control | Manual  | Full     | ~13-30KB per module    |

## Chart Type Selection

| Chart     | Best For                             | Avoid When                        |
| --------- | ------------------------------------ | --------------------------------- |
| Line      | Trends over time, continuous data    | Categorical data                  |
| Bar       | Comparing categories, rankings       | Continuous data                   |
| Pie/Donut | Part-to-whole (max 5-7 slices)       | >7 categories, precise comparison |
| Area      | Volume over time, stacked categories | Too many overlapping series       |
| Scatter   | Correlation, outliers, distribution  | Time series                       |
| Heatmap   | Intensity across two dimensions      | Simple comparisons                |

## Dashboard Patterns

| Pattern             | Use Case             | Key Feature                        |
| ------------------- | -------------------- | ---------------------------------- |
| KPI Dashboard       | Executive metrics    | Trend indicators, card grid        |
| Real-Time           | Live monitoring      | SSE/WebSocket, animation disabled  |
| Interactive Filters | Exploratory analysis | Period/region selects, drill-down  |
| Drill-Down          | Hierarchical data    | Click to zoom (year → month → day) |

## Responsive Design

| Approach               | Implementation                                    |
| ---------------------- | ------------------------------------------------- |
| Container-based sizing | `<ResponsiveContainer width="100%" height={300}>` |
| Aspect ratio mode      | `<ResponsiveContainer width="100%" aspect={2}>`   |
| Mobile-aware           | Reduce `strokeWidth`, `height` on small screens   |
| Label simplification   | Fewer axis labels on mobile                       |

## Common Mistakes

| Mistake                      | Fix                                            |
| ---------------------------- | ---------------------------------------------- |
| Fixed width/height           | Use `ResponsiveContainer`                      |
| Animation on real-time data  | Set `isAnimationActive={false}`                |
| Too many pie slices          | Max 5-7 slices, group rest as "Other"          |
| Non-accessible colors        | Use WCAG AA compliant, colorblind-safe palette |
| Loading entire chart library | Lazy load with dynamic imports                 |
| No data formatting           | Use `Intl.NumberFormat` for currency/percent   |

## Delegation

- **Explore data shape and available fields before choosing chart type**: Use `Explore` agent
- **Build a complete multi-chart dashboard from requirements**: Use `Task` agent
- **Plan visualization architecture for large-scale analytics pages**: Use `Plan` agent

## References

- [Library Selection](references/library-selection.md) — Recharts, Chart.js, D3.js setup and examples
- [Chart Types](references/chart-types.md) — line, bar, pie, area, scatter, heatmap with use cases
- [Dashboard Patterns](references/dashboard-patterns.md) — KPI, real-time SSE, interactive filters, drill-down
- [Design and Accessibility](references/design-and-accessibility.md) — color schemes, colorblind-safe palettes, responsive, animation
- [Data Formatting and Export](references/data-formatting-and-export.md) — number formatters, CSV export, PNG export
- [Performance](references/performance.md) — lazy loading, virtualization for large datasets
- [Storytelling and Annotation](references/storytelling-and-annotation.md) — data narratives, annotations, color strategy, edge states

© oakoss · MIT · oakoss/agent-skills

Similar skills

All skills for Frontend and UI →

data-visualizer by other authors comes first.

data-visualizer daffy0208 data-visualizer guides coding agents in building charts and interactive dashboards. Helpful when adding metrics views to React, Vue, or Angular applications. CX Codex +1 578installs data-visualization dylantarre data-visualization is a Claude Code skill for animating charts, dashboards, and data transitions. It applies when building motion for information displays. CX Codex +1 661installs visualizing-data ancoleman visualizing-data picks the right chart for your data and purpose, then helps build the dashboard or report with accessibility baked in. CX Codex +1 2installs data-viz-agent podo data-viz-agent builds charts that hold up: picks the chart type from the data relationship, orders encodings by perceptual accuracy, and checks contrast and keyboard access. CX Codex +1 204installs analytics-metrics hoodini analytics-metrics — a skill that hands your agent ready Recharts components: line, bar and pie charts plus KPI cards. Useful when a screen needs metrics, not another table. CX Codex +1 384installs d3-data-visualization official OpenAI The d3-data-visualization skill builds custom D3 visualizations with SVG or DOM, annotations, bespoke scales, and interaction. Use it when standard chart grammars no longer fit. CX Codex GP ChatGPT +1 13installs build-web-data-visualization official OpenAI The build-web-data-visualization plugin for Codex designs, tests, and builds web visualizations. It supports creating interactive charts, dashboards, maps, and WebGL components. CX Codex GP ChatGPT ★ 8,052repo stars

From the same set106

The whole set →
prompt-engineering prompt-engineering is a Claude Code skill for prompt design, covering reasoning chains, ReAct loops, system prompt layouts, extended thinking and context trimming. CX Codex +1 135installs react-error-handling react-error-handling guides agents on React error boundaries and fallback interfaces to prevent component rendering failures from crashing the whole page. CX Codex +1 134installs frontend-builder The frontend-builder skill guides React and Next.js UI work, from component structure to forms and error handling. Use it when starting a web app or deciding how its frontend should be organized. CX Codex +1 134installs mise Teaches the agent to work with mise, the polyglot tool version manager, environment variable manager, and task runner. CX Codex +1 133installs knowledge-base-manager knowledge-base-manager is a Claude Code skill for choosing a document, graph, or hybrid knowledge-base design and planning its maintenance. It covers content curation, quality checks, and versioning. CX Codex +1 131installs secure-ai secure-ai — a skill that hardens the LLM layer of an app: injection defense, output validation, and zero-trust rules for agents that call tools. CX Codex +1 130installs python-uv python-uv teaches coding agents to manage Python projects with uv: initialization, dependencies, lockfiles, workspaces, and packaging. Useful when migrating from pip and poetry workflows. CX Codex +1 129installs rust This skill guides Rust work across ownership, async services, CLIs, terminal UIs, and testing. Use it when an agent needs Rust-specific patterns. CX Codex +1 128installs

Project sponsors

Companies that keep this analytics open