
Recharts
A redefined, declarative chart library built with React and D3. The most popular React charting package with 27k+ stars.

Overview
Recharts is the most widely adopted declarative chart library in the React ecosystem. With over 27,000 GitHub stars, it marries React's declarative component model with D3's battle-tested visualization algorithms.
Key Features
- Declarative React Components: Build line, bar, area, and pie charts with clean JSX tags (
<LineChart>,<XAxis>). - SVG Native: Lightweight vector graphics rendering with smooth responsive scaling and high resolution.
- Animated & Interactive: Built-in hover tooltips, animated transitions, and custom render props.
- Extensive Ecosystem: The standard charting foundation used by shadcn/ui and Tremor.
Installation & Quick Start
npm install rechartsimport { LineChart, Line, XAxis, YAxis, Tooltip } from 'recharts';
export default function ChartDemo() {
const data = [{ name: 'Jan', uv: 400 }, { name: 'Feb', uv: 700 }];
return (
<LineChart width={400} height={200} data={data}>
<XAxis dataKey="name" />
<YAxis />
<Tooltip />
<Line type="monotone" dataKey="uv" stroke="#3b82f6" />
</LineChart>
);
}Why Choose Recharts?
- Best for: Standard React dashboards, SaaS metrics, and business reports needing clean, responsive charts.
- Not suitable for: Complex 3D visualizations or millions of real-time streaming Canvas data points.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stackEvil Charts
Animated React chart components built with Recharts, Apache ECharts, and shadcn/ui. Dual-engine architecture with fluid motion and glow aesthetics.
23rd
An open-source shadcn/ui registry of opinionated, tasteful components by radiumcoders — WebGL shaders, playful 404s, and interactive showpieces you copy, paste, and own.
Duolingo UI (ShadLingo)
A comprehensive Duolingo-inspired design system and component suite built on shadcn/ui v4 and Tailwind CSS, featuring signature 3D buttons, vivid owl-green tokens, and gamified interaction cards.