side9527 commented on issue #9216: 怎么控制tree图的显示位置
URL: 
https://github.com/apache/incubator-echarts/issues/9216#issuecomment-432949546
 
 
   
前几天找到了一个比较蹩脚的解决方法,就是点击节点的时候根据chartChild._chartsViews[0]._data._graphicEls.length
 来判断点击的节点是否为根节点(length < 
3即为根节点),如果是根节点就使用chartChild.setOption(chartChild.getOption())重新产开,也算是不让他收起根节点吧,别的方法找了很多没找到,就先暂时用的这个,希望维护的大大可以开发一个控制每个节点是否能收缩的功能

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to