It is common for developers to design DataWindow objects that include one or more graphs. When users need to quickly understand and analyze data, a bar, line, or pie graph can often be the most effective format to display.
To learn about designing graphs, see the DataWindow Designer User’s Guide.
This chapter applies to graphs in DataWindowControls. In a WebDataWindowControl, graphs can be displayed in a stand-alone image file or in an image stream embedded into the Web page. For more information, see “Rendering graphs”.
The following sections describe how you can access (and optionally modify) a graph in a DataWindowControl 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.