RMC_GetDataLocationXY function.
Get the X- and Y-postion of a data value within a grid of XY-series

Syntax
nResult (LONG) = RMC_GetDataLocationXY(
ByVal nCtrlId (LONG),
ByVal nRegion (LONG),
ByVal nSeriesIndex (LONG),
ByVal nDataX (DOUBLE),
ByVal nDataY (DOUBLE),
ByRef nXPos (LONG),
ByRef nYPos (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control, to which the series belongs.
nRegion (LONG)
Index of the region, to which the series belongs.
nSeriesIndex (LONG)
Index of the series, to which the data corresponds. This is necessary to determine the alignment of the data axis, which belongs to the series in order to retrieve the correct position.
nDataX (DOUBLE)
The X-data value, whose position shall be calculated.
nDataY (DOUBLE)
The Y-data value, who's position shall be calculated.
nXPos (LONG)
Holds the X-position of the X-data value after succesfull function call
nYPos (LONG)
Holds the Y-position of the Y-data value after succesfull function call
Return value
0
No error, function succeeded.
RMC_ERROR_CTRLID
Wrong control ID (0 or no chart with this control ID was found).
RMC_ERROR_WRONGREGION
The region index is inexistent in the chart control.
RMC_ERROR_SERIESINDEX
The series index is not valid (No series with this index exists in this region).
RMC_ERROR_WRONGSERIESTYPE
The series is not XY (either Pie/Donut/Pyramid or grid based).