Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 10, 2024 via pnpm

recharts 2.8.0

React charts
Package summary
Share
0
issues
4
licenses
33
MIT
11
ISC
2
BSD-3-Clause
1
MIT AND ISC
Package created
7 Aug 2015
Version published
25 Aug 2023
Maintainers
3
Total deps
47
Direct deps
12
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
33 Packages, Including:
@babel/runtime@7.24.5
@types/d3-array@3.2.1
@types/d3-color@3.1.3
@types/d3-ease@3.0.2
@types/d3-interpolate@3.0.4
@types/d3-path@3.1.0
@types/d3-scale@4.0.8
@types/d3-shape@3.1.6
@types/d3-time@3.0.3
@types/d3-timer@3.0.2
classnames@2.5.1
css-unit-converter@1.1.2
decimal.js-light@2.5.1
dom-helpers@3.4.0
eventemitter3@4.0.7
fast-equals@5.0.1
js-tokens@4.0.0
lodash@4.17.21
loose-envify@1.4.0
object-assign@4.1.1
postcss-value-parser@3.3.1
prop-types@15.8.1
react-dom@18.3.1
react-is@16.13.1
react-lifecycles-compat@3.0.4
react-resize-detector@8.1.0
react-smooth@2.0.5
react@18.3.1
recharts-scale@0.4.5
recharts@2.8.0
reduce-css-calc@2.1.8
regenerator-runtime@0.14.1
scheduler@0.23.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
11 Packages, Including:
d3-array@3.2.4
d3-color@3.1.0
d3-format@3.1.0
d3-interpolate@3.0.1
d3-path@3.1.0
d3-scale@4.0.2
d3-shape@3.2.0
d3-time-format@4.1.0
d3-time@3.1.0
d3-timer@3.0.1
internmap@2.0.3

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
d3-ease@3.0.1
react-transition-group@2.9.0

MIT AND ISC

Permissive
1 Packages, Including:
victory-vendor@36.9.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

12
All Dependencies CSV
β“˜ This is a list of recharts 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
classnames2.5.18.46 kBMIT
prod
eventemitter34.0.79.43 kBMIT
prod
lodash4.17.21311.49 kBMIT
prod
prop-types15.8.122.12 kBMIT
prod peer
react-dom18.3.14.3 MBMIT
prod peer
react-is16.13.15.33 kBMIT
prod
react-resize-detector8.1.026.75 kBMIT
prod
react-smooth2.0.546.37 kBMIT
prod
react18.3.1310.65 kBMIT
prod peer
recharts-scale0.4.534.44 kBMIT
prod
reduce-css-calc2.1.836.5 kBMIT
prod
victory-vendor36.9.2396.84 kBMIT AND ISC
prod

Visualizations

Frequently Asked Questions

What does recharts do?

Recharts is a redefined, noteworthy chart library constructed exclusively for React applications with the support of D3. This library aims to facilitate hassle-free chart creation in React apps. Adhering to key Recharts principles promises a simple deployment with React components, native SVG support that is weightless as it depends only on some D3 submodules, and declarative components, indicating that the components of charts are purely presentational.

How do you use recharts?

To use Recharts, you can start by installing it via npm with the command npm install recharts, assuming npm has been already setup in your app. The Recharts library provides various chart components such as LineChart, XAxis, Tooltip, CartesianGrid etc. Each of these components is an independent React Component and they can be composed together to create a complete chart. Here's an example of how to create a LineChart using Recharts:

<LineChart
  width={400}
  height={400}
  data={data}
  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} />
</LineChart>

Here, LineChart is the main component that includes XAxis, Tooltip, CartesianGrid, and Line components. The data prop passed to LineChart is the datasource for the chart. The XAxis component defines the X-axis, Tooltip adds a tooltip for data, and the Lines define two lines drawn for 'uv' and 'pv' dataKeys from the data source.

Where are the recharts docs?

The official documentation for Recharts is accessible at recharts.org. The documentation provides comprehensive guides and API references for understanding how to utilize Recharts. Additional information, including FAQs, can also be found in the official wiki of the Recharts GitHub repository.