Click or drag to resize

BlockSeriesBaseSolveNearestSampleByValue Method

LightningChart .NET Help
Solve nearest sample 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 virtual bool SolveNearestSampleByValue(
	double xValue,
	double yValue,
	out double nearestSampleXValue,
	out double nearestSampleYValue,
	out int nearestIndex
)

Parameters

xValue
Type: SystemDouble
X value.
yValue
Type: SystemDouble
Y value.
nearestSampleXValue
Type: SystemDouble
Nearest sample X.
nearestSampleYValue
Type: SystemDouble
Nearest sample Y.
nearestIndex
Type: SystemInt32
Nearest sample index in the SampleSingle or SamplesDouble array.

Return Value

Type: Boolean
True if successfully solved.
See Also