The X-value of point [X data units, not pixels].
The Y-value of point [Y data units, not pixels].
xUnitsPerPixel/yUnitsPerPixel.
specifies search region in X units (ticks for DateTime or TimeSpan).
FindClosestPoint Method (IDataSeries)
Finds the closest point to a point with given X and Y value. Search region is a vertical area with center in X and [maxXDistance] X units to left and right.
Syntax

Parameters

x
The X-value of point [X data units, not pixels].
y
The Y-value of point [Y data units, not pixels].
xyScaleRatio
xUnitsPerPixel/yUnitsPerPixel.
maxXDistance
specifies search region in X units (ticks for DateTime or TimeSpan).

Return Value

The index of the found value, -1 if not found (when count is zero).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also