[]
        
(Showing Draft Content)

C1.WPF.C1Chart.ChartView.DataIndexFromPoint

DataIndexFromPoint Method

DataIndexFromPoint(Point, int, MeasureOption, out double)

Get the index of closest data point that corresponds to the specified point.

Declaration
public int DataIndexFromPoint(Point pt, int seriesIndex, MeasureOption option, out double distance)
Parameters
Type Name Description
Point pt

Point in the control coordinates.

int seriesIndex

Index of series.

MeasureOption option

Measure option.

double distance

Distance from the data point to the specified point.

Returns
Type Description
int

The index of the data point that is closest to the specified point.