Start with the dataset and visual task: geographic features require a map/projection model, while numerical charts use chart scales, axes and series.
react-simple-maps focuses on SVG geographic visualization. It supplies map components and geographic/projection integration with GeoJSON/TopoJSON-oriented data. A regional value map requires geographic features and a join between data and regions, not only x/y chart series.
Recharts composes numerical charts from React components such as chart containers, axes, series and tooltips. It fits common dashboard-style visualizations when its data and scale model cover the task. A responsive container still needs usable layout dimensions from its parent.
Victory provides chart primitives and compositions with interaction containers. Its web package declares React 18 or later; the native chart offering is a separate integration rather than an assumption that every web component runs in React Native.
react-vis supplies a chart component collection with its own plot/series composition. Its current React and React DOM peers remain in the React 16.8 range. An older working chart example does not establish compatibility with every newer host.
Use geographic mapping when location and spatial features drive the visual explanation. Use a chart library for numerical relationships, time series and categorical comparisons. A dashboard can use a map alongside charts, but one is not automatically a drop-in renderer for the other.
Check data shape, domains, empty results, tooltip content, interactions and labels in the intended layout. Match peers and output behavior to the application’s server/client rendering setup. Existing data and event handlers need translation during migration; no package is a universal performance or readability winner.
Choose it for declarative React chart composition with series, axes and tooltips, aligning its React, React DOM and react-is peers.
Choose it for SVG geographic maps, projections, geographic features, markers and map interaction rather than a general Cartesian chart.
Choose it for its chart components and interaction/container composition on a supported React host; the current publication declares React 18 or later.
Consider it for a chart integration matching its component model and declared React/React DOM 16.8 peer range.
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:
Documentation at recharts.github.io and our storybook
Also see the wiki.
All development is done on the main branch. The current latest release and storybook documentation reflects what is on the release branch.
<LineChart width={400} height={400} data={data}>
<XAxis dataKey="name" />
<Tooltip />
<CartesianGrid stroke="#f5f5f5" />
<Line type="monotone" dataKey="uv" stroke="#ff7300" />
<Line type="monotone" dataKey="pv" stroke="#387908" />
</LineChart>
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 react-is
react-is needs to match the version of your installed react package.
Deno is a drop-in replacement for npm, so Recharts installs the same way:
$ deno add recharts react-is
The UMD build is also available on unpkg.com:
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/react-is@18/umd/react-is.production.min.js"></script>
<script src="https://unpkg.com/recharts/umd/Recharts.js"></script>
Then you can find the library on window.Recharts.
Recharts is open source. If you want to contribute to the project, please read the CONTRIBUTING.md to understand how to contribute to the project and DEVELOPING.md to set up your development environment.
Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.
Thanks to JetBrains for providing OSS development license for their IDEs.
Browser testing via
Copyright (c) 2015-2026 Recharts Group.