FindClosestLine Method (IDataSeries)
Finds the closest line 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
int FindClosestLine( IComparable x, IComparable y, double xyScaleRatio, double xRadius, LineDrawMode drawNanAs )
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.
- xRadius
- specifies search region in X units (ticks for DateTime or TimeSpan).
- drawNanAs
- specifies how to handle NAN elements.
Return Value
The index of first point in line, -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