hustcc / echarts-for-react

⛳️ Apache ECharts components for React wrapper. 一个简单的 Apache echarts 的 React 封装。
https://git.hust.cc/echarts-for-react
MIT License
4.51k stars 629 forks source link

feature request : add resize opts support #514

Open chaichunyang opened 1 year ago

chaichunyang commented 1 year ago

从 echarts 5 开始默认禁用了 resize 的动画,但后来支持了配置:

myChart.resize({
  animation: {
      duration: 300,
      easing: 'cubicInOut'
  }
});

希望我们能支持此项配置 resize animation

xwbxxx commented 1 year ago

请问这个问题解决了吗?react-for-echarts该如何调用这段代码?

hustcc commented 1 year ago

@xwbxxx 有兴趣来一个 pr 吗?

xwbxxx commented 1 year ago

@xwbxxx 有兴趣来一个 pr 吗?

有兴趣!看了眼源码逻辑不算复杂,但是我本地跑不起来github上的代码,只能通过npm install echarts-for-react下载正式版

hustcc commented 1 year ago

@xwbxxx 有兴趣来一个 pr 吗?

有兴趣!看了眼源码逻辑不算复杂,但是我本地跑不起来github上的代码,只能通过npm install echarts-for-react下载正式版

为啥会跑不起来!

xwbxxx commented 1 year ago

@xwbxxx 有兴趣来一个 pr 吗?

有兴趣!看了眼源码逻辑不算复杂,但是我本地跑不起来github上的代码,只能通过npm install echarts-for-react下载正式版

为啥会跑不起来!

一开始是npm install的时候会在这个地方报错: image 后来修改镜像,安装似乎成功了 npm start的时候又报这个错: image

xwbxxx commented 1 year ago

@xwbxxx 有兴趣来一个 pr 吗?

有兴趣!看了眼源码逻辑不算复杂,但是我本地跑不起来github上的代码,只能通过npm install echarts-for-react下载正式版

为啥会跑不起来!

另外,我在本地安装时,发现package.json中定义的这两个目录不存在,导致了本地安装无法正常导入module,请问我应该执行什么指令,生成这两个目录? image

CoolRice commented 2 months ago

2024年了,这个功能有更新吗