echarts
echarts copied to clipboard
[Feature] type为tree时,配置tooltip之后,当鼠标悬浮或者点击连接线时,无法触发tooltip,而且无法触发echarts实例的mousemove/mouseenter等回调函数
What problem does this feature solve?
新增这个特性之后,当在type为tree的连接线上触发mousemove/mouseenter/click这些事件时,会触发tooltip弹框,类似type为graph时在连接线上触发的tooltip
What does the proposed API look like?
{
type:'tree',
linksTooltip:true
}
/*
新增字段linksTooltip,默认为false,当设置为true时,配置tooltip之后,在连接线上触发之后会显示tooltip,并且会触发myChart.on('event',function(){})这个方法
*/
@fxxpro It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Feature] When the type is tree, after configuring the tooltip, the tooltip cannot be triggered when the mouse is hovered or the connection line is clicked, and the callback functions such as mousemove/mouseenter of the echarts instance cannot be triggered.
BODY
What problem does this feature solve?
After adding this feature, when mousemove/mouseenter/click events are triggered on the connection line of type tree, the tooltip pop-up box will be triggered, similar to the tooltip triggered on the connection line when type is graph.
What does the proposed API look like?
{
type:'tree',
linksTooltip:true
}
/*
New field linksTooltip, the default is false. When set to true, after configuring the tooltip, the tooltip will be displayed after being triggered on the connection line, and the method myChart.on('event', function(){}) will be triggered.
*/
The request is for a 'tree', that 'tooltip' can be enabled on the line that connect two items.