Skip to content

Releases: hustcc/echarts-for-react

v2.0.6

29 Jan 06:10

Choose a tag to compare

add new props of component named opts. It can be used to set render chart with svg.

v2.0.5

18 Jan 02:17

Choose a tag to compare

  • echarts 4.x supported.
  • add an demo of Sunburst
  • element-resize-event to v2.0.9

v1.4.1

01 Jun 03:55

Choose a tag to compare

新特性:自定义 import / 动态加载模块

在保持原来的使用方式不变的情况下, 用户可以可以自定义导入 echarts 中的模块,从而保证在少量使用 echarts 的情况下,减少打包出来的 JavaScript 文件大小。具体做法如下:

import React from 'react';
// import the core library.
import ReactEchartsCore from 'echarts-for-react/lib/core';
// then import echarts modules those you have used manually.
import echarts from 'echarts/lib/echarts';
import 'echarts/lib/chart/bar';
import 'echarts/lib/component/tooltip';

// The usage of ReactEchartsCore are same with above.
<ReactEchartsCore
  echarts={echarts}
  option={this.getOption()}
  notMerge={true}
  lazyUpdate={true}
  theme={"theme_name"}
  onChartReady={this.onChartReadyCallback}
  onEvents={EventsDict} />

使用上,除了 import 的文件不一致之外,组件的使用方式和 props 和原来没有任何区别。

v1.1.5

04 Nov 09:51

Choose a tag to compare

主要修复了:#12 #13

增加属性:

  • notMerge
  • lazyUpdate

并稳定运行近两个月。

v1.1.2

09 Jun 07:54

Choose a tag to compare

主要完成两个issue,(#1#2),包括包括:

一、配置

  • 增加**style**属性配置
  • 增加**className**属性配置

其他props配置包括:

  • option
  • theme
  • onChartReady
  • onEvents
  • showLoading

二、方法

这部分没有懂,只有一个方法用于获取echarts实例,通过这个实例可以使用所有的Echarts API

  • getEchartsInstance()