You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/30 02:37:54 UTC

[GitHub] [incubator-echarts] dagundejuzi opened a new issue #11518: 线图中,将tooltip绑定到axis上,无法获取此点击事件

dagundejuzi opened a new issue #11518: 线图中,将tooltip绑定到axis上,无法获取此点击事件
URL: https://github.com/apache/incubator-echarts/issues/11518
 
 
   ### Version
   4.3.0
   
   ### Steps to reproduce
   配置是:
   tooltip: {
                       show:true,
                       confine: true,
                       trigger: 'axis',
                       triggerOn: 'click',
                       axisPointer: {
                           type: 'none'
                       },
                      ……
                },
   
   然后监听了点击事件:
   myChart.on('click',function (param) {
            ……
   }
   
   ### What is expected?
   能监听到点击事件,并获取到对应轴所在位置的数据点的数据。
   
   ### What is actually happening?
   监听不到此点击事件。但是如果改成监听数据点trigger: 'item',就能监听到点击事件了。
   
   <!-- 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org