[]
        
(Showing Draft Content)

Determining the Closest Data Point

To determine the closest data point to a set of pixel coordinates, call CoordToDataIndex:

To write code in Visual Basic

Dim Row, Column As Integer
C1Chart3D1.ChartGroups(0).ChartData.CoordToDataIndex( 225, 92, Column, Row)
' CoordToDataIndex returns the row and column of the closest data point.

To write code in C#

int Row=0, Column=0;
C1Chart3D1.ChartGroups[0].ChartData.CoordToDataIndex(225, 92, ref Column, ref Row);
// CoordToDataIndex returns the row and column of the closest data point.

See Also

Chart 3D for WinForms Task-Based Help