recharts 0,22,0,17,6,6,0,5 editorconfig eslint travis-ci npm webpack

Redefined chart library built with React and D3


Rocket.Chat Build Status Coverage Status npm version npm downloads MIT License


Recharts is a Redefined chart library built with React and D3.

The main purpose of this library is to help you to write charts in React applications without any pain. Main principles of Recharts are:

  1. Simply deploy with React components
  2. Native SVG support, lightweight depending only on some D3 submodules
  3. Declarative components, components of charts are purely presentational


  margin={{ top: 5, right: 20, left: 10, bottom: 5 }}
  <XAxis dataKey="name" />
  <Tooltip />
  <CartesianGrid stroke="#f5f5f5" />
  <Line type="monotone" dataKey="uv" stroke="#ff7300" yAxisId={0} />
  <Line type="monotone" dataKey="pv" stroke="#387908" yAxisId={1} />

All the components of Recharts are clearly separated. The lineChart is composed of x axis, tooltip, grid, and line items, and each of them is an independent React Component. The clear separation and composition of components is one of the principle Recharts follows.



NPM is the easiest and fastest way to get started using Recharts. It is also the recommended installation method when building single-page applications (SPAs). It pairs nicely with a CommonJS module bundler such as Webpack.

# latest stable
$ npm install recharts


The UMD build is also available on

 <script src=""></script>

Then you can find the library on window.Recharts.

dev build

$ git clone
$ cd recharts
$ npm install
$ npm run build


To examine the demos in your local build, execute

$ npm run[-script] demo

and then browse to http://localhost:3000

Module Formats


We’d love :heart: to hear what you think we should build. Please create an issue to write your usage or ideas.

We are looking for like-minded people who share the same idea about Recharts. The goal of this project is create a more flexible charting library for the React community.



Copyright © 2015-2017 Recharts Group

Related Repositories



Redefined chart library built with React and D3 ...



An interface to ECharts ...



An R Interface to ECharts ...



Just Recharts pre-aliased for Preact. ...

Top Contributors

xile611 arcthur evilucifero jasonHzq techniq iuriikozuliak kujon vanthiyathevan nickpalmer jochenberger GregoryPotdevin dlindahl jasonslyvia AlexGilleran shelbeniskb MasterAM amay radarhere ciAnd7 avindra Cloudo orius123 fkretzer joshburgess mjul knowbody mischah nickstanish sebinsua yjcxy12


package version
dev babel-cli ^6.18.0
babel-core ^6.18.2
babel-eslint ^7.0.0
babel-loader ^6.2.8
babel-plugin-istanbul 3.0.0
babel-plugin-lodash ^3.2.10
babel-plugin-transform-class-properties ^6.19.0
babel-plugin-transform-decorators-legacy ^1.3.4
babel-plugin-transform-export-extensions ^6.8.0
babel-plugin-transform-function-bind ^6.8.0
babel-plugin-transform-object-rest-spread ^6.19.0
babel-polyfill ^6.16.0
babel-preset-es2015 ^6.18.0
babel-preset-react ^6.16.0
chai ^3.5.0
chai-enzyme ^0.5.2
cross-env ^3.1.4
enzyme ^2.6.0
escope ^3.6.0
eslint ^3.8.1
eslint-config-airbnb ^12.0.0
eslint-plugin-import ^1.16.0
eslint-plugin-jsx-a11y ^2.2.0
eslint-plugin-react ^6.4.1
estraverse-fb ^1.3.1
json-loader ^0.5.4
karma ^1.3.0
karma-chai ^0.1.0
karma-chrome-launcher ^2.0.0
karma-coverage ^1.0.0
karma-coveralls ^1.1.2
karma-firefox-launcher ^1.0.0
karma-mocha ^1.3.0
karma-sourcemap-loader ^0.3.7
karma-webpack ^2.0.1
lodash-webpack-plugin ^0.10.5
mocha ^3.1.0
pre-commit ^1.1.3
react ^15.4.1
react-addons-test-utils ^15.4.1
react-dom ^15.4.1
react-hot-loader ^1.3.0
react-router ^3.0.1
react-transition-group ^1.1.2
rimraf ^2.5.3
sinon ^1.17.0
webpack ^2.2.0
webpack-bundle-analyzer ^2.2.1
webpack-dev-server ^2.2.0
peer react ^0.14.0 || ^15.0.0
react-transition-group ^1.1.3
classnames 2.2.5
core-js 2.4.1
d3-interpolate ^1.1.5
d3-scale 1.0.4
d3-shape 1.0.4
lodash ~4.17.4
prop-types ~15.5.10
react-resize-detector 0.4.1
react-smooth 0.3.0
recharts-scale 0.3.1
reduce-css-calc 1.3.0


-   v0.15.1 zip tar
-   v0.15.0 zip tar
-   v0.14.2 zip tar
-   v0.14.1 zip tar
-   v0.14.0 zip tar
-   v0.13.4 zip tar
-   v0.13.3 zip tar
-   v0.13.2 zip tar
-   v0.13.1 zip tar
-   v0.13.0 zip tar
-   v0.12.8 zip tar
-   v0.12.7 zip tar
-   v0.12.6 zip tar
-   v0.12.5 zip tar
-   v0.12.4 zip tar
-   v0.12.3 zip tar
-   v0.12.2 zip tar
-   v0.12.1 zip tar
-   v0.12.0 zip tar
-   v0.11.0 zip tar
-   v0.10.10 zip tar
-   v0.10.9 zip tar
-   v0.10.8 zip tar
-   v0.10.7 zip tar
-   v0.10.6 zip tar
-   v0.10.5 zip tar
-   v0.10.4 zip tar
-   v0.10.3 zip tar
-   v0.10.2 zip tar
-   v0.10.1 zip tar