control.Region(n).AnySeries([n]).GetDataYLocation(nData)

PurposeCalculates the Y position of a given data within a XY chart.
Parameter
nData Double

The data value, whose position shall be calculated.

Return valueIf successful, the Y-position of the data value. In case of an error, an element of the RMCError enumeration.
Remarks

NOTE: This method is only available with XY charts. For grid based charts use GetDataLocation.

Example 'Supposed, you have a XY series where the X axis ranges from 0 to 1000, the Y axis from 0 to 500. You want to mark a point at position 800/200 (X/Y) during runtime.

'Get the X position for value 800 ...:
nX = RMChartX1.Region(1).XYSeries(1).GetDataXLocation(800)
'... and the Y position for value 200:
nY = RMChartX1.Region(1).XYSeries(1).GetDataYLocation(200)
'Now add a custom Symbol object:
RMChartX1.AddCustomObjectSymbol
RMChartX1.CustomObjectSymbol(1).SetProperties nX, nY, RMC_SYMBOL_CIRCLE, ArmyGreen
'Redraw the chart without recreating it:
RMChartX1.Draw False