- Select a data source and then select Graph as the presentation style.
- Define the data source and click the OK button. The Graph Data window displays.
Tip If the data in the data source is not sorted, use Sort on the Rows menu of the workspace to specify sort criteria.
- Select the data you want to include in the graph. The default is All the data in the DataWindow object, you can restrict it to only data on the current page of the DataWindow by selecting Page from the Data listbox or to specific group by selecting a group.
- Enter the name of the series you want to include in the graph in the Series box or select the name from the Series dropdown listbox.
Tip If you use a literal instead of the column name for the series name, enclose it in quotes: "Q1".
- Enter the name of the category you want to display on the category axis in the Category box or select the name from the Category dropdown listbox.
Tip If you enter a literal as the category name, enclose it in quotes: "Total Salary"
- Enter an expression or column name in the Value box or you can paint the expression by selecting the functions and column names from the Value dropdown listbox. If the value expression does not contain an aggregate function, PowerBuilder does not sort the rows and the order in the graph will match the order of the DataWindow rows.
Note Duplicates are always removed from the graph.
Related topics
Defining Multiple Values for a Series
Defining Multiple Series
Using the Crosstab Presentation Style
Using the Group Presentation Style
Using the Label Presentation Style
Using the N-Up Presentation Style
|