ComponentOne Chart 8.0 for ActiveX
Calling Methods in C++

 

Calling Methods in C++

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:

long   pixelx, pixely;

 

m_chart.GetChartGroups().GetItem(COleVariant(short(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.

 

 


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

Product Support Forum  |  Documentation Feedback