hellosean1025 / node-echarts

Generate chart by echarts in nodejs.
281 stars 88 forks source link

生成图片后,程序一直保持监听状态,你们是怎么关闭的? #19

Closed JamKong closed 5 years ago

JamKong commented 6 years ago

我在用了最新版的node-echarts 生成图片后,程序一直处于监听状态,我看了下代码原因是echarts在创建的时候默认监听一堆事件,我想问下你们是怎么生成图片后让程序关闭的,是有相关的参数吗?还是? 我现在的做法是在你们原来的代码上加上了 chart.dispose();(把echarts对象销毁掉)

haojian20161987 commented 6 years ago

赞一个,我搞了半天都没法关闭

hellosean1025 commented 5 years ago

https://github.com/hellosean1025/node-echarts/issues/23 发布新版了