Building blocks and outside APIs · Library

Recharts

A popular React charting library where you build line, bar, area and pie charts by combining components, much like writing HTML.

Charts · Open source · updated

How it works

A chart is written as JSX: a LineChart containing an XAxis, a YAxis, a Tooltip, a Legend and one Line per series, fed an array of objects. It renders SVG, so charts stay sharp at any size, take CSS styling and resize with ResponsiveContainer. It borrows parts of D3 for the maths without making you learn D3, and the chart components in shadcn/ui are built on it.

SVG means one page element per point, bar or label, so charts slow down with many thousands of points or rapid live updates; Canvas-based libraries such as uPlot cope better there. For typical dashboards, reports and admin screens it is a comfortable default.

Recharts pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

Recharts vs the alternatives

More in Building blocks and outside APIs

Charts

All 14 Building blocks and outside APIs terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.