-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echarts在设置自动获取数据刷新的时候,内存不断增长,最终导致浏览器崩溃 #4105
Labels
pending
We are not sure about whether this is a bug/new feature.
Comments
是否能给出完整的 option,方便我们复现问题? |
就直接用官网的例子,然后自己添加setInterval,循环执行就会出现这个问题 @100pah |
我也出现了这个问题,请问楼主你解决了吗 |
请问这个问题解决了吗?用了dispose()方法,但是内存还是在上升,有办法稳定吗? |
Anyone managed to solve the issue? |
4.0解决这个问题了吗? |
这个问题解瘊了吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题简述 (One-line summary)
版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
1.setInterval(function(){echartInit();},refreshSec);
2.echartInit=function(){
myChart = echarts.init(document.getElementById('echartID'));
option={};
myChart.clear();
myChart.dispose();
myChart.setOption(option);
}
期望结果 (Expected behaviour)
调用clear(),dispose()可以自动释放内存,内存在自动刷新的过程中内存可以固定在某一均值,而不是一直不断增长
可能哪里有问题 (What went wrong)
在调用clear(),dispose()时并没有释放内存,导致内存一直增加
ECharts配置项 (ECharts option)
其他信息 (Other comments)
The text was updated successfully, but these errors were encountered: