Installation
NPM
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.
npm install recharts
UMD
The UMD build is also available on unpkg.com ( unpkg ) :
<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/recharts/umd/Recharts.js"></script>
You can find the library on window.Recharts
Dev Build
git clone https://github.com/recharts/recharts.git cd recharts npm install npm run build