helgasoft commented on issue #18460:
URL: https://github.com/apache/echarts/issues/18460#issuecomment-1583119386

   I'm not fixing bugs yet, focus on helping with API solutions.
   As already mentioned, _containPixel_ **works** for grid.
   ```
   myChart.getZr().on('click',  (p) => {
     const ppix = [p.offsetX, p.offsetY];
     b = myChart.containPixel('grid', ppix);  // works for inside/outside of 
chart
     // console.log(b+' '+ppix);
   });
   ```
    true = inside chart-area, false = on X/Y axes, no response = out of canvas


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to