Home Forums Chart Support How do I convert mouse click coordinate to canvas coordinates? Reply To: How do I convert mouse click coordinate to canvas coordinates?

#42971

Gibran,

You need to subtract the offset of the chart container from e.pageX/e.pageY to get the coordinate value of the click with respective to canvas as shown in this documentation page.

—-
Manoj Mohan
Team CanvasJS