Click or drag to resize

FreeformPointLineSeriesSolveNearestDataPointByValue Method

LightningChart .NET Help
Solve nearest data point to given X and Y value.

Namespace:  Arction.Wpf.Charting.SeriesXY
Assembly:  Arction.Wpf.Charting.LightningChart (in Arction.Wpf.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public bool SolveNearestDataPointByValue(
	double xValue,
	double yValue,
	out double nearestPointXValue,
	out double nearestPointYValue,
	out int nearestIndex
)

Parameters

xValue
Type: SystemDouble
X value.
yValue
Type: SystemDouble
Y value.
nearestPointXValue
Type: SystemDouble
Nearest data point X.
nearestPointYValue
Type: SystemDouble
Nearest data point Y.
nearestIndex
Type: SystemInt32
Nearest data point index in the Points or PointsWithErrors array.

Return Value

Type: Boolean
True if successfully solved.
See Also