Topic: APLX Help : System Classes : Methods : Pointtochartalt
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'Pointtochartalt' method


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 alternate 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, where the Series containing the point uses the Alternate Y scale.

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 alternate Y scale) and X value of the Chart.


Topic: APLX Help : System Classes : Methods : Pointtochartalt
[ Previous | Next | Contents | Index | APL Home ]