To access properties related to a graph’s data during execution, you use DataWindow methods for graphs. There are three categories of these methods related to data:
Methods that provide information about a graph’s data
Methods that save data from a graph
Methods that change the color, fill patterns, and other visual properties of data
To call the methods for a graph in a DataWindow control, use the following syntax:
DataWindowName.methodName ( "graphName", otherArguments… )
For example, there is a method CategoryCount, which returns the number of categories in a graph. So to get the category count in the graph gr_printer (which is in the DataWindow control dw_sales), write:
Ccount = dw_sales.CategoryCount("gr_printer")