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/26 01:58:03 UTC
[GitHub] [incubator-echarts] moumyu edited a comment on issue #3853: echarts event 事件问题
moumyu edited a comment on issue #3853: echarts event 事件问题
URL: https://github.com/apache/incubator-echarts/issues/3853#issuecomment-486897467
可以配合hideTip事件清空lastTipIndex
```javascript
var lastTipIndex = null;
chart .on('showTip', function(event) {
lastTipIndex = event.dataIndex;
});
chart .on('hideTip', function(event) {
lastTipIndex = null;
});
chart .getZr().on('click', function() {
if (dataIndex != null) {
// 执行点击事件动作
}
});
```
----------------------------------------------------------------
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