It is common for developers to design DataWindow objects that include one or more graphs. When users need to understand and analyze data quickly, a bar, line, or pie graph can often be the most effective format to display.
To learn about designing graphs, see the User’s Guide.
The following sections describe how you can access (and optionally modify) a graph by addressing its properties in code at runtime. There are two kinds of graph properties:
Properties of the graph definition itself These properties are initially set in the DataWindow painter when you create a graph. They include a graph’s type, title, axis labels, whether axes have major divisions, and so on.
Properties of the data These properties are relevant only at runtime, when data has been loaded into the graph. They include the number of series in a graph (series are created at runtime), colors of bars or columns for a series, whether the series is an overlay, text that identifies the categories (categories are created at runtime), and so on.
Using graphs in other controls Although you will probably use graphs most often in DataWindow objects, you can also add graph controls to windows or visual user objects. Additional PowerScript functions and events are available for use with graph controls.
For more information, see Chapter 7, “Manipulating Graphs in Windows.”