sxmpasch commented on issue #9341: events defined by `chart.on(eventName, ...` 
are not triggered
URL: 
https://github.com/apache/incubator-echarts/issues/9341#issuecomment-436412334
 
 
   As intermediate solution, you could add an event listener to the parent div 
object in order to receive click-coordinates. They then can be transformed into 
real axis coordinates:
   
   ```
   document.getElementById('chart-panel').addEventListener("click",function(e){
       console.log(e.zrX+"#"+e.zrY+'#'+myChart.convertFromPixel({xAxisIndex:0, 
yAxisIndex:0},[e.zrX,e.zrY]));
   })
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to