talira

Recharts

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.

  1. G2 AntV's grammar-of-graphics JavaScript library for building charts and dashboards on Canvas, SVG or WebGL
  2. Chartist Simple, responsive JavaScript charts drawn in SVG and styled with CSS, with no dependencies
  3. ApexCharts Interactive SVG charts for the web, free under M revenue
  4. nivo React chart components built on d3, with SVG, HTML and canvas charts, motion and server-side rendering
  5. MUI X Advanced React components for data-rich apps: Data Grid, Date and Time Pickers, Charts, Tree View and more
  6. Chartkick Create beautiful JavaScript charts with one line of Ruby

Compare Recharts with the top 3