Click or drag to resize

PointLineSeriesSolveNearestDataPointByValue Method

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

Namespace:  Arction.Wpf.ChartingMVVM.SeriesXY
Assembly:  Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.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