Skip to content
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图的显示位置 #9216

Closed
side9527 opened this issue Oct 12, 2018 · 2 comments
Closed

怎么控制tree图的显示位置 #9216

side9527 opened this issue Oct 12, 2018 · 2 comments

Comments

@side9527
Copy link

side9527 commented Oct 12, 2018

很抱歉打扰了
配置中开启了缩放和平移
image
当tree图移到上图所示位置时,点击最上面的节点,tree图就会消失了,怎么规避这个问题呢

@side9527
Copy link
Author

前几天找到了一个比较蹩脚的解决方法,就是点击节点的时候根据chartChild._chartsViews[0]._data._graphicEls.length 来判断点击的节点是否为根节点(length < 3即为根节点),如果是根节点就使用chartChild.setOption(chartChild.getOption())重新产开,也算是不让他收起根节点吧,别的方法找了很多没找到,就先暂时用的这个,希望维护的大大可以开发一个控制每个节点是否能收缩的功能

@deqingli
Copy link
Member

deqingli commented Sep 3, 2019

#10291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants