hustcc/echarts-for-react

⛳️ Apache ECharts components for React wrapper. 一个简单的 Apache echarts 的 React 封装。

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 51 minutes ago
Added to GitGenius on March 25th, 2025
Created on June 3rd, 2016
Open Issues & Pull Requests: 53 (+0)
Number of forks: 650
Total Stargazers: 5,003 (+0)
Total Subscribers: 61 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 206.2 days
Mean response time: 421.6 days
90th percentile: 1033.6 days
Tracked items: 57

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 97% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 5% of issues opened in the past year have been closed. Three people close 94% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 33
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 694 days
Stale 30+ days: 33
Stale 90+ days: 31

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (2)
  • help wanted (2)
  • bug (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

echarts-for-react is a React wrapper component for Apache ECharts, designed to simplify the integration of ECharts visualization capabilities into React applications. The repository is written in TypeScript and serves as a bridge between the powerful ECharts library and React's component-based architecture. According to the README, it positions itself as the simplest and best React wrapper available for Apache ECharts, with support for visualization through the MCP Server mcp-server-chart.

The component accepts a comprehensive set of props that control chart behavior and appearance. The required option prop contains the ECharts configuration object that defines what the chart displays. Optional props include notMerge and replaceMerge for controlling how data updates are applied, lazyUpdate for deferred rendering, and style and className for customizing the chart container's appearance. The theme prop allows users to apply custom ECharts themes after registration. Additional props like showLoading and loadingOption enable loading state visualization, while onChartReady provides a callback when the chart finishes initializing. The onEvents prop allows binding to ECharts events with custom callbacks. The opts prop passes initialization options directly to echarts.init, and autoResize controls whether the chart automatically resizes when the window changes.

The component exposes a single primary API method, getEchartsInstance, which returns the underlying ECharts instance object.

The repository demonstrates flexibility in supporting multiple ECharts versions. For ECharts v5 and v6, users can manually import specific modules to reduce bundle size. For earlier versions like v3 and v4, different import patterns are supported. The documentation includes specific guidance for Next.js users, noting that transpilation is needed and providing configuration examples for both Next.js 13.1 and higher versions using the transpilePackages option, as well as instructions for earlier versions using next-transpile-modules.

The repository is classified across numerous data visualization and charting categories, reflecting its broad applicability in dashboard components, interactive graphs, and business intelligence tools.