---
name: "recharts-declarative-react-charts"
description: "Construct composable, responsive React data charts using SVG Recharts components."
metadata:
  author: "Recharts"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create recharts line chart"
  - "use responsivecontainer recharts"
  - "customize recharts tooltip"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Recharts Declarative React Charts

Builds React data visualizations with Recharts: ResponsiveContainer, LineChart, BarChart, AreaChart, XAxis, YAxis, Tooltip, Legend, and custom SVG dot shapes.

## When to Invoke
Invoke this skill whenever you need to:
- create recharts line chart
- use responsivecontainer recharts
- customize recharts tooltip

## Execution SOP & Rules
1. Wrap charts inside <ResponsiveContainer width="100%" height={300}> to guarantee responsive layout.
2. Supply data as standard JavaScript arrays of objects matching chart dataKey attributes.
3. Customize tooltip rendering using <Tooltip content={<CustomTooltip />} />.
4. Avoid passing inline functions as component props to prevent unnecessary chart re-renders.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
