| Object Reference > ChartGroup Object > ChartGroup Object Methods > CoordToDataIndexObject Method (ChartGroup) |
CoordToDataIndexObject Method (ChartGroup)
Picks the displayed data closest to the given pixel coordinate. This method is similar to CoordToDataIndex, except that the Chart3DDataIndexResult object is returned with the Row, Point and Distance values that indicate the chart region in which the coordinate is found. This method should be used if passing parameters by reference is not allowed in your development environment (such as VBScript). See Chart3DDataIndexResult Object for more information.
Function CoordToDataIndexObject(XPixel As Long, YPixel As Long) As Chart3DDataIndexResult
|
Part |
Type |
Description |
|
XPixel |
Long |
X pixel coordinate |
|
YPixel |
Long |
Y pixel coordinate |
See Also