ComponentOne Chart 8.0 for ActiveX
Converting Coordinates Passed By Reference

 

Converting Coordinates Passed By Reference

If passing parameters by reference is not supported in your development environment (such as VBScript), the ChartGroupscollection provides methods for converting coordinates that return an object instead of a reference. Otherwise, these methods function like DataCoordToCoord, CoordToDataCoord, DataIndexToCoord, and CoordToDataIndex.

·      DataCoordToCoordObject maps a chart coordinate to a pixel coordinate. A Chart2DCoordResult object is returned with the X pixel and Y pixel values for the corresponding chart coordinate.

·      CoordToDataCoordObject maps a pixel coordinate to a chart coordinate. A Chart2DDataCoordResult object is returned with the X and Y values indicating chart region in which the coordinate is found.

·      DataIndexToCoordObject determines the closest pixel coordinate given a chart group series and point. A Chart2DCoordResult object is returned with the X Pixel and Y Pixel values.

·      CoordToDataIndexObject picks the displayed data closest to the given pixel coordinate. A Chart2DDataIndexResult object is returned with the Series, Point and Distance values that indicate the chart region in which the coordinate is found.

 

 


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

Product Support Forum  |  Documentation Feedback