Composable charting library built from React components on SVG and D3
open sourceMITfree
Recharts is a chart library for React apps. Each chart is composed of declarative React components (axes, grids, tooltips, legends, lines, bars) rendered as native SVG, with a light dependency on D3 submodules, and customised through props or custom components. It covers line, area, bar, composed, pie, radar, radial bar, scatter and sunburst charts and treemaps, with animations.
Problems it solves
- add line and bar charts to a React app
- build a dashboard with charts from JSON data in React
- draw responsive SVG charts in a React dashboard
Features
- Declarative, composable React chart components
- Native SVG rendering with a light dependency on D3 submodules
- Line, area, bar, composed, pie, radar, radial bar, scatter and sunburst charts
- Treemaps
- Tooltips, legends, brushes and multiple axes
- Customise with props or your own components
- Chart animations
Alternatives
The same job
These do what Recharts does.
- G2 AntV's grammar-of-graphics JavaScript library for building charts and dashboards on Canvas, SVG or WebGL
- Chartist Simple, responsive JavaScript charts drawn in SVG and styled with CSS, with no dependencies
- ApexCharts Interactive SVG charts for the web, free under M revenue
- nivo React chart components built on d3, with SVG, HTML and canvas charts, motion and server-side rendering
- MUI X Advanced React components for data-rich apps: Data Grid, Date and Time Pickers, Charts, Tree View and more
- Chartkick Create beautiful JavaScript charts with one line of Ruby
