Recharts
Compose charts from React components, one JSX tag at a time
What it is
Recharts is a chart library made only for React, drawing in SVG. Most chart tools ask for one big settings object; here you arrange parts inside a chart container as you would lay out a page, and removing the grid means deleting that line. The chart components in shadcn/ui are built on it. Its site has moved to recharts.github.io, and the old address sends you there.
Key features
- Composed charts: Stack lines, bars and areas in one container
- Custom parts: Replace tooltips, legends and dots with your own React components
- Responsive container: The chart recalculates its size from the surrounding width
- Linked charts: Give several charts the same ID and their cursors move together
Who it's for
Developers building a React or Next.js dashboard with standard line, bar and pie charts can read the code quickly and restyle it to match a brand. It does not work with Vue or other frameworks, SVG slows down past many thousands of points, and unusual shapes mean turning to D3. In Next.js, place it in a client component. It is open source and free.
Front-end & Site Building
- Astro — A web framework that ships HTML first and JavaScript only where needed
- Flutter — Write once in Dart, ship to iOS, Android, web and desktop
- Framer Motion — Declarative React animations through props, now renamed Motion
- GSAP — JavaScript animation with precise timelines and scroll-driven effects
- Next.js — The React framework that adds routing, server rendering and APIs
- React — A JavaScript library for building interfaces out of components