github项目地址:https://gith*ub.c*o*m/hustcc/echarts-for-react
DEMO地址:http://git.*h**ust.cc/echarts-for-react/#/?_k=l9a9ca
使用非常简单
一、安装
npm install echarts-for-react
二、引入使用
import React from 'react';
import ReactEcharts from 'echarts-for-react';
option={this.getOtion()}
style={{height: '300px'}}
theme={"theme_name"}
onChartReady={this.onChartReadyCallback}
onEvents={EventsDict} />
目前ReactEcharts有以下属性:
option、style、theme、className、onChartReady、showLoading、onEvents。大家可以去github上看readme文件。
另外API方法,只有一个getEchartsInstance()方法获取echarts的实例对象,然后就可以调用echarts的所有API方法了。

如何写好 CLAUDE.md:一份精简实用指南
跃迁至 Ubuntu 20.04 LTS 发行版 Ubuntu Touch OTA1 Focal首批适配机型曝光
Ubuntu 22.04.2 LTS 维护版本更新发布 升至 Linux 5.19
Linux5.19内核大提升! Ubuntu 22.04 LTS 现可升级至 Linux Kernel 5.19
从零搭建RAG知识库问答系统
Aider 自定义 API 配置指南:终端配对编程接入与排错