Using the dataToLocal method of CartesianDataCanvas returns coordinates relative to the canvas rather than the containing chart despite what the documentation says. I need to take these coordinates and convert them to coordinates relative to the chart. I have been adding in gutters and padding to get this to work but there must be a better way. ??
Never mind, I figured it out.
Convert local canvas coordinates to global coordinates. then global coordinates to local chart coordinates.