最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
百度Echart 3.0的react封装使用例子
时间:2022-11-14 22:03:05 编辑:袖梨 来源:一聚教程网
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';
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方法了。

相关文章
- 苗族银饰锻造技艺属于哪种非遗 04-07
- 校园一信通app如何开卡绑定 04-07
- 番茄影视大全免费追剧-番茄todo社区免费观影 04-07
- 红石比较器怎么使用 04-07
- jm漫画网页版免费登录入口-jm漫画网页版 04-07
- 原神云游戏极速入口-原神云游戏官网直通2026 04-07