Open lycfr opened 4 weeks ago
@lycfr It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
This doesn't seem to be a problem related to ECharts. Make sure the x value is as expected and ECharts should render the data passed in.
这个离开了页面,像是生命周期停止了,重新渲染了,数据又恢复,但是中间数据就丢失没了
@lycfr, apparently browsers stop executing scripts in inactive tabs, see this. To keep your script alive in Chrome, there are at least 3 options :
请问这个问题解决了吗?我也遇到了这个问题,echarts的数据通过WebScoket实时数据,浏览器最小化以后几分钟再回到页面,数据是不正常的。
Version
4.9.0
Link to Minimal Reproduction
https://jsfiddle.net/coderun/vhxcf2mt/3/
Steps to Reproduce
Current Behavior
离开页面后,数据丢失
Expected Behavior
程序还在运行,数据应该还可以持续加载
Environment
Any additional comments?
No response