Argument: 2-element Numeric Vector
Result: 2-element Numeric Vector
Valid for: Chart
This method converts from coordinates of the visible control on the screen to Chart coordinates (using the main Y scale).
It is particularly useful for respondng to mouse-down events on the chart, for example if you want to allow the user to select a point on the graph.
The argument is a two-element vector of the vertical and horizontal position within the visible control (remembering that top, left is 0, 0). It is expressed in the current scale
of the control; you will probably want to set the scale
property to 5 for pixels before calling this method.
The result is a two-element vector of the corresponding Y value (using the main Y scale) and X value of the Chart.