Programming Considerations > Programming With Objects > Calling Methods with Objects |
To call a 2D Chart method, access the object with which it is associated. For example, the following statement uses the DataCoordToCoord method, defined by the ChartGroups collection, to convert the chart coordinates (5.1, 10.2) to their equivalent pixel coordinates:
Chart2D1.ChartGroups(1).DataCoordToCoord 5.1, 10.2, PixelX, PixelY
Each method is described in the help page for its associated object. For example, DataCoordToCoord is described in the ChartGroups collection help page.