A guide for implementing composable, responsive data charts in React apps.

Install

mkdir -p .claude/skills/recharts && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12806" && unzip -o skill.zip -d .claude/skills/recharts && rm skill.zip

Installs to .claude/skills/recharts

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Build composable, responsive React charts with Recharts library. Use when creating data visualizations including line charts, area charts, bar charts, pie charts, scatter plots, and composed charts. Handles chart customization, responsive sizing, tooltips, legends, axes configuration, performance optimization, and accessibility.
330 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • →Install Recharts library
  • →Create line charts with `LineChart` and `Line` components
  • →Build area charts using `AreaChart` and `Area` components
  • →Construct bar charts with `BarChart` and `Bar` components
  • →Generate pie charts using `PieChart` and `Pie` components
  • →Develop composed charts by mixing chart types

How it works

This skill uses the Recharts library to build React charts by composing specialized components like `LineChart`, `XAxis`, and `Tooltip`, with data provided as an array of objects.

Inputs & outputs

You give it
An array of objects representing data points
You get back
A React chart component (e.g., LineChart, BarChart, PieChart)

When to use recharts

  • →Create line chart
  • →Build bar graph
  • →Implement dashboard visualization

About recharts

Facilitates the creation of line, bar, pie, and composed charts. Manages component composition, responsive design, and data mapping.

Build composable, responsive React charts with Recharts library. Use when creating data visualizations including line charts, area charts, bar charts, pie charts, scatter plots, and composed charts. Handles chart customization, responsive sizing, tooltips, legends, axes configuration, performance op

When not to use it

  • →When `ResponsiveContainer` has no parent with defined dimensions
  • →When height is a percentage in `ResponsiveContainer`
  • →When data is not an array of objects

Prerequisites

npm install recharts

Limitations

  • →Chart not rendering if `ResponsiveContainer` has no parent with defined dimensions
  • →Tooltip not showing if `Tooltip` component is not included
  • →Axis labels overlapping if not configured with `angle` or `interval`

How it compares

This workflow use a declarative React component-based approach for data visualization, allowing for composable and responsive charts, which differs from imperative chart drawing libraries.

Compared to similar skills

recharts side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
recharts (this skill)07moReviewBeginner
magicpath04moReviewIntermediate
react-email54moReviewIntermediate
web-development53moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry