Charting a Result Set

You can use DB2 Web Query to graph numerical columns (columns where all values are numerical) from a result set, using the chart screen. You can create column charts, line graphs and pie charts. By default, each column is a group of data-points that are plotted as a set of columns of the same color, a line or a pie. If you plot more than one data column, columns of different colors, multiple lines, or nested pies will result.

You can use the defaults that DB2 Web Query supplies for many of the field choices in the task below, or you can modify them as appropriate for your environment. If you choose to use the defaults supplied by DB2 Web Query you can click Generate from the Chart screen without specifying any of the options mentioned in steps below.

To chart a result set:

1.         Open the Select Output window by clicking the result set that you want to open in the DB2 Web Query navigation pane and selecting open or by clicking Next from the Query Data Screen.

2.         Click the Chart button in the top right corner of the screen. The Chart screen opens.

Note:      At any point after this step you can click Generate to create your graph. The steps listed below allow you to customize your graph.

3.         Set the general options for your chart.

4.         Click the Axis button.

5.         Set the axis options for your chart.

6.         Click the Options button.

7.         Set the font and color options for your chart.

8.         Click Generate to create your chart.