v1.3.1 Apache ECharts 5 & 6

ECharts for React Made Simple

A modern, lightweight React wrapper for Apache ECharts. Build beautiful, interactive data visualizations with ease.

50+
Chart Types
5KB
Gzipped Size
100%
TypeScript
React 16-19
Support

Why React ECharts?

Easy to Use

Simple, declarative API that feels natural in React. Just pass your options and let the library handle the rest.

📦

Tree Shakeable

Use EChartsCore for optimized bundles. Import only the chart types you need for smaller builds.

🎨

Fully Customizable

Access all ECharts configuration options. Built-in theme support with dark and light modes.

📱

Responsive

Charts automatically resize with their container. Perfect for responsive layouts.

🔧

TypeScript Support

Full TypeScript definitions for type-safe chart configurations and autocompletion.

🎯

Event Handling

Rich event system for interactive charts. Click, hover, zoom, and custom events supported.

Interactive Chart Examples

Explore various chart types powered by Apache ECharts

Line Chart
Bar Chart
Pie Chart
Radar Chart
Gauge Chart
Scatter Chart

Simple, Declarative API

Create beautiful charts with just a few lines of code

import { EChartsReact } from 'react-echarts-library';

function MyChart() {
  const option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
      type: 'value'
    },
    series: [{
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line',
      smooth: true
    }]
  };

  return <EChartsReact option={option} />;
}

Ready to Get Started?

Install react-echarts-library and create your first chart in minutes.

Read the Docs