Skip to content

Releases: hustcc/echarts-for-react

3.0.3

05 Mar 02:36
Compare
Choose a tag to compare

What's Changed

  • Add a section for next.js user on reducing bundle size by @Mr-Milk in #470
  • Fixes #460: Initialise echarts with correct width and height by @mobeigi in #464
  • 📝 doc: 修改README.md by @scc02 in #485
  • fix: TSLint export type by @tisonkun in #498
  • feat: whether to trigger this.resize when window resize by @fakership in #490
  • docs(types): fix typo by @100gle in #535
  • Update types.ts by @poozhu in #562
  • feat: Pass through replaceMerge when using setOption. by @Xalier in #520
  • docs: update .umirc.js by @hustcc in #569
  • docs: update TS and useRef example by @mrdulin in #554
  • Updated code transpilation for Next.js 13.1 or higher in readme file by @linkfang in #528
  • fix: Replace EChartsOption/EChartsInstance type by @xyz-26 in #586
  • fix: update action workflow by @hustcc in #587
  • Fix #446, #447 issues. 1) Only refresh the events bound by echart when the event changes. 2) If the style or classname changes, it's more reasonable to refresh the data after performing charts.resize first. by @iitodo in #444

New Contributors

Full Changelog: v3.0.2...v3.0.3

3.0.2

29 Oct 03:43
Compare
Choose a tag to compare

What's Changed

  • fix(docs): xAxis "0" not found when import ECharts.js modules manually by @superlbr in #414
  • Fix animations being cancelled by initial render resize by @mobeigi in #458
  • getEchartsInstance方法没有注明返回值类型 by @n0099 in #429
  • Allow resize to occur if style or className have changed by @mobeigi in #459

New Contributors

Full Changelog: v3.0.1...v3.0.2

v3.0.1

26 Feb 01:37
0df82ff
Compare
Choose a tag to compare
  • add opts.locale config.

v3.0.0 released, echarts v5 supported.

19 Feb 02:40
787cee1
Compare
Choose a tag to compare

本次升级主要的内容在于:

1. 支持 echarts v5 最新版本

image.png

2. 完全 typescript

之前是在 React 0.14 时代,还是使用 props-types 校验 props,然后 ts 类型定义单独自己手写,也非常痛苦。所以这次直接使用 ts 写,自动生成 类型定义 文件。

3. 单测覆盖率

之前使用 jest-canvas-mock 进行单元测试,毕竟是 mock 而不是真实运营,所有一些逻辑测试不到,覆盖率一直提不上去。

所以这次换成了 jest-electron,真实运行,覆盖率直接提升到 ,运行也改成使用 GitHub action 了。当然 jest-electron 这个模块,也是为了给 AntV 系列技术栈做单测,而开发的轮子,个人觉得还是挺好用的。

4. 全新官网

之前的官网是自己初学 React 的时候,完全自己搭建的,没有 lint、ci,代码凌乱,样式也不好看。所以这次直接使用 dumi 这个库自动生成,网站全部 markdown 开发,也方便大家遇到官网 typo,直接一键提交 PR。

image.png

同时 Example 实例也可直接一键导航到其他代码编辑工具上。

5. README 排版

项目很简单,概念也很简单,所以直接 Readme 作为 document,但是之前的文档结构、样式排版比较凌乱,所以按照现在的个人审美,重新写了写!

3.0.0-beta.2

07 Feb 12:25
2da2791
Compare
Choose a tag to compare
  • peer echarts can be v3, v4, v5
  • peer react can be v15, v16, v17

3.0.0-beta.1

07 Feb 11:44
1d48dac
Compare
Choose a tag to compare
  • new website style.
  • echarts v5 supported.
  • run test case with jest-electron

v2.0.8

02 Mar 13:43
Compare
Choose a tag to compare

Fix issues:

  • bind events duplicate, #155
  • when onEvents is null, will thrown, #154

v2.0.7

01 Mar 05:25
Compare
Choose a tag to compare

Fixed:

  • bug of 100px width * height canvas #149 #150
  • events can not be removed #151
  • add opts in typescript file #153

v2.0.6

29 Jan 06:10
Compare
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
Compare
Choose a tag to compare
  • echarts 4.x supported.
  • add an demo of Sunburst
  • element-resize-event to v2.0.9