ComponentOne Chart 8.0 for ActiveX
CoordToDataIndex Method (ChartGroup)

 

CoordToDataIndex Method (ChartGroup)

Picks the displayed data closest to the given pixel coordinate.

Syntax

Function CoordToDataIndex(XPixel As Long, YPixel As Long, Focus As FocusConstants, Series As Long, Point As Long, Distance As Long) As RegionConstants

Remarks

Returns a value indicating the chart region in which the coordinate is found.

 

Part

Type

Description

Xpixel

Long

X pixel coordinate

Ypixel

Long

Y pixel coordinate

Focus

Integer

How the closest series and point is determined. See Focus Constants for valid values.

Series

Long

Returned nearest series

Point

Long

Returned nearest point

Distance

Long

Distance between pixel coordinate and closest displayed data

See Also

ChartGroup Object

Region Constants

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback