charts

Create data visualizations with recharts including bar, line, area, and pie charts.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/arborba100/command-hub --skill charts-arborba100
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: charts
Source: https://github.com/arborba100/command-hub/tree/main/.emdash/skills/charts
Command: npx skills add https://github.com/arborba100/command-hub --skill charts-arborba100

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires recharts, moment, framer-motion.

What problem does it solve? Building consistent, well-styled charts in React requires remembering recharts API details, responsive container rules, and theme integration, which slows down dashboard and analytics development. ## Core Features & Use Cases - Chart Type Patterns: Ready-to-use implementations for bar (basic, grouped, stacked), line (single, multi-series), area (basic, gradient), and pie (basic, donut) charts. - Theme Integration: All examples use Tailwind CSS variables like hsl(var(--primary)) so charts automatically match the design system. - Formatting & Tooltips: Includes number, currency, percentage, and date formatting patterns plus custom tooltip components. - Use Case: When asked to build an analytics dashboard, apply the complete dashboard example combining stat cards, a revenue bar chart, a traffic donut chart, and a trend line chart in a responsive grid. ## Quick Start Use the charts skill to build a responsive revenue dashboard with a bar chart and a donut chart using recharts.

Frequently Asked Questions about charts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a bar chart with recharts in React?▼

Wrap a BarChart component in ResponsiveContainer, pass a data array, and add XAxis, YAxis, CartesianGrid, Tooltip, and Bar elements. Set the Bar dataKey to your numeric field and use fill with a CSS variable for theming.

Why is my recharts chart not rendering or showing zero width?▼

Recharts charts fail to render without a ResponsiveContainer wrapper or when the parent has no explicit height. Always wrap charts in ResponsiveContainer with width="100%" and a fixed height like 300, or give the parent div an explicit height.

How do I make a donut chart with recharts?▼

Use a PieChart with a Pie element that has both innerRadius and outerRadius set, such as innerRadius={60} and outerRadius={100}. Map Cell components over your data to assign colors to each slice.

How do I style recharts with Tailwind CSS variables?▼

Pass HSL CSS variable strings directly to fill and stroke props, like fill="hsl(var(--primary))" or stroke="hsl(var(--border))". For tooltips, set contentStyle with backgroundColor using hsl(var(--card)) to match the theme.

How do I format axis labels as currency or dates in recharts?▼

Use the tickFormatter prop on XAxis or YAxis with a function that transforms each value. For currency use value => `$${value.toLocaleString()}`, and for dates use moment(value).format('MMM D').

Does recharts support stacked and grouped bar charts?▼

Yes, recharts supports both. Grouped bars use multiple Bar elements with different dataKeys, while stacked bars add a shared stackId prop like stackId="a" to each Bar so values accumulate vertically.