You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/25 07:20:18 UTC

[GitHub] side9527 commented on issue #9256: echarts 4.0 树缩放 后收拢根节点会玩失踪

side9527 commented on issue #9256: echarts 4.0 树缩放 后收拢根节点会玩失踪
URL: https://github.com/apache/incubator-echarts/issues/9256#issuecomment-432941892
 
 
   我之前也遇到这个问题,后来的解决方法是,点击节点的时候根据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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org