Recharts
UI library · Free
A React SVG chart library for line, bar, area, and other charts with declarative components.
Also known as: recharts/recharts
What you can use for free
Recharts code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
Recharts code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- Business metric charts
- Charts with tooltips and legends
Example workflow
A possible workflow; this is not a report of hands-on testing.
Business metric charts with Recharts.
Before you start
- A working React; SVG project and a specific use case: business metric charts.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current Recharts documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing Recharts
Business metric charts
Choose this when
- Business metric charts
- Charts with tooltips and legends
Consider alternatives when
- When choosing for this topic, compare Recharts with Apache ECharts. A candidate to compare under the topic: Charts and data visualization. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare Recharts with Nivo. A candidate to compare under the topic: Charts and data visualization. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- The installed react-is must have the same version as React; data is bound to components through dataKey.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- Charts are assembled from individual components: choose the series, axes, and tooltips needed for your task. Accessibility of the final chart requires separate verification.
Frequently asked questions
What can you use for free in Recharts?
Recharts code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with Recharts?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for Recharts?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with Recharts?
Check the project's stack and version against the current Recharts documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
Why does installation require react-is?
The README requires react-is to match the installed React version. Check both dependencies when upgrading React.
How do I compose a chart from several parts?
Within LineChart, you can combine XAxis, Tooltip, CartesianGrid, and separate Line components, each with its own dataKey. Components are defined declaratively and can be changed independently.
Related tasks and approaches
- Apache ECharts
A candidate to compare under the topic: Charts and data visualization. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Nivo
A candidate to compare under the topic: Charts and data visualization. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- React
- SVG
- charts