KJohn2q opened a new issue #12704:
URL: https://github.com/apache/incubator-echarts/issues/12704
饼图设置了默认高亮事件,在环图内部显示文本,当鼠标移入图例且与当前高亮图形不对应时,图例移入事件显示的文本会与默认显示的文本重叠。
以下是默认显示的代码:
```
devicebydis.dispatchAction({ type: 'highlight', seriesIndex: 0,
dataIndex: 0 });
devicebydis.dispatchAction({ type: 'highlight', seriesIndex: 1,
dataIndex: 0 });
devicebydis.dispatchAction({ type: 'highlight', seriesIndex: 2,
dataIndex: 0 });
devicebydis.on('mouseover', function (v) {
if (v.dataIndex != 0) {
devicebydis.dispatchAction({
type: 'downplay',
seriesIndex: v.seriesIndex,
dataIndex: 0
});
}
devicebydis.dispatchAction({ type: 'pieselected', seriesId: ''})
});
devicebydis.on('mouseout', function(v) {
devicebydis.dispatchAction({ type: 'highlight', seriesIndex:
v.seriesIndex, dataIndex: 0 });
});
```
官方文档并没有提供图例移入事件的api描述,该怎么解决这个问题?
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]