This discussion is archived
1 Reply Latest reply: Apr 4, 2013 4:18 AM by 1000056 RSS

LineChart mouse coordinates

1000056 Newbie
Currently Being Moderated
Hi. How can I convert coordinates of mouse cursor to chart coordinates ?

This code works, but gives shift error:

x = chartAxisX.getValueForDisplay(chartAxisX.parentToLocal(event.getX,0).getX).doubleValue
y = chartAxisY.getValueForDisplay(chartAxisY.parentToLocal(0, event.getY).getY).doubleValue

Edited by: 997053 on Mar 29, 2013 2:55 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points