0 Replies Latest reply on Mar 23, 2007 3:06 PM by nprzybylo

    Chart Coordinates

    nprzybylo Level 1
      Hello,

      I am trying to get the x and y-coordinates of a mouse click on a chart. I know how to get the absolute coordinates of the mouse in relation of the chart using the event.currentTarget.mouseX and Y properties, but I'd like to get them in terms of the chart's coordinate system. For instance, if the x and y axis both go from 0 to 4, and I click in the middle of the chart, I'd like to get (2,2) as my return value. Can I only do this mathematically by converting from "absolute coords" to "chart coords" given the x and y axes min's and max's, or is there an easier way? Thanks for your help!