ruixuel opened a new issue #10699: Cannot get click event when clicking on bar 
chart with option {large: true}
URL: https://github.com/apache/incubator-echarts/issues/10699
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   1. create a bar chart with option {large: true}
   2. add click event handler on the bar chart
   3. when clicking on the bar chart, the click handler cannot get the event
   
   ### What is expected?
   The click handler for large bar chart can get event
   
   ### What is actually happening?
   The click handler cannot get click event when clicking on the large bar 
chart. When zooming in to certain level, then click event works.
   
   ---
   I debug the source code, and find the problem is caused by the code in 
echarts.js line: 1402. Since clicking on large bar chart cannot get dataIndex, 
so the params is undefined which causes the event will not be triggered. Our 
requirement is to get the event no matter the params contains dataIndex or not. 
We also tried to bind the native event to chart container. But somehow, it 
sometimes has conflict with some chart events, ex: brush, drag, etc. Could you 
help to solve this problem? Thank you!
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to