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 2019/04/03 06:05:43 UTC

[GitHub] [incubator-echarts] longrenkai opened a new issue #10204: 在树图中需要一个tooltip,当鼠标在移动到label的时候展示。并且在点击item的时候的回调里需要有一个该节点是否展开或者收起的参数。

longrenkai opened a new issue #10204: 在树图中需要一个tooltip,当鼠标在移动到label的时候展示。并且在点击item的时候的回调里需要有一个该节点是否展开或者收起的参数。
URL: https://github.com/apache/incubator-echarts/issues/10204
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   需在鼠标移动到label的时候展示tooltip,并且需要在每个节点后面有展开或者收起的按钮,当收起的时候为   当展开的时候 为 - 点击时展开或者收起节点。但是我只能做到鼠标移动到item的时候展示tooltip,我在做的时候只能做到让item的大小跟文字大小一致,然后将文字移动到item内部,这样虽然可以在鼠标移动到label的时候展示tooltip,但是无法在后面加上另外一个展开收起的按钮了,只能点击label或者item的时候自动展开收起,并且我在用chart.on('click')的时候的回调无法获取到该节点时候展开或者收起,在开发过程当中应该会有很多场景需要这个参数。
   
   ### What is expected?
   希望在鼠标hover到label的时候展示tooltip而不是移动到item,并且在点击item的时候需要一个是否展开或者收起的回调。
   
   ### What is actually happening?
   我无法实现这两种共同存在。
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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