Echarts For React
echarts-for-react
Apache Echarts components for React.
Charts
react
component
echarts-react
echarts
react-echarts
chart
charts
graph
react-component
echarts-for-react
Stars
331
Weekly
1.0M
Open issues
4
Bundle
~25 kB
Installation
npm install echarts-for-reactCode example
import { EchartsForReact } from "echarts-for-react";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<EchartsForReact data={data} width={420} height={240}>
{/* series / axes from Echarts For React */}
</EchartsForReact>
);
}Pros & cons
Pros
- Actively maintained by hustcc
- 1.0M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 4 open issues on GitHub