Closed CodeFly16 closed 8 months ago
@CodeFly16 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. 🤗
init 的时候 useDirtyRect 设为 true 开启脏矩形渲染,参见 https://echarts.apache.org/zh/api.html#echarts
init 的时候 useDirtyRect 设为 true 开启脏矩形渲染,参见 https://echarts.apache.org/zh/api.html#echarts
这里添加useDirtyRect还是会出现刷新情况
这是因为 series.progressive
不为 0 的情况下开启了渐进式渲染,所有数据又刷掉了。所以应该把这个配置项设为 0 后配合脏矩形。
说错了,setOption 的时候总是会全部刷新的,那这个问题无解了
说错了,setOption 的时候总是会全部刷新的,那这个问题无解了
感谢回复,我刚刚将series.progressive设置为0,有一定的效果,我下去在试一试
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
Version
5.22
Link to Minimal Reproduction
https://codesandbox.io/s/objective-ritchie-9o0o2?file=/src/index.js
Steps to Reproduce
Current Behavior
当前使用setOption改变data后,图形整体重新刷新了一遍
Expected Behavior
使用setOption改变data后,图形不会整体全部刷新,而是数据变化的局部发生改变
Environment
Any additional comments?
No response