To access properties related to a graph’s data during execution, you use PowerScript graph functions. The graph functions related to data fall into several categories:
Functions that provide information about a graph’s data
Functions that save data from a graph
Functions that change the color, fill patterns, and other visual properties of data
To call functions for a graph in a graph control, use the following syntax:
graphControlName.FunctionName ( Arguments )
For example, to get a count of the categories in the window graph gr_printer, code:
Ccount = gr_printer.CategoryCount()
Different syntax for graphs in DataWindows The syntax for the same functions is more complex when the graph is in a DataWindow, like this:
DataWindowName.FunctionName ( "graphName", otherArguments… )
For more information, see Chapter 12, “Manipulating Graphs in DataWindows.”