-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
tree 动态删除数据,第二次删除后无法渲染,报异常 #7315
Labels
Comments
添加 treeChart.clear(); 不再出现异常
|
Closed
@sunxiongwei clear会清空实例中的数据,这样的话做不到局部更新数据,假如有很多子节点,默认一些子节点是被折叠的,手动展开这些子节点后向某个子节点下添加一个子节点,那么clear后重绘,这些子节点就又会被折叠了。理想的展示效果是局部更新节点,或者说是能够记住节点的折叠状态 |
@gaoshijun1993 嗯,这个是现在临时的 workaround,新版本会修复这个 bug |
@sunxiongwei 你好,这个问题已经解决了,会随下个版本一起发布。欢迎验证,如果有问题可以 reopen 这个 issue,再次感谢给我们提建议! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One-line summary [问题简述]
动态删除数据,第二次删除后无法渲染,报异常
为了简单复现,可以每次删除根节点的第一个子节点:
root.children.splice(0, 1);
tab.treeChart.setOption($scope.getTreeDate(root), true);
第二次后开始报错
Version & Environment [版本及环境]
Expected behaviour [期望结果]
解决
ECharts option [ECharts配置项]
Other comments [其他信息]
The text was updated successfully, but these errors were encountered: