For example, you can
create a bar chart that compares the total amount of sales for each
product line in the Sashelp.Pricedata data set. By default, the task
calculates the mean of the response variable for each product line.
This bar chart shows that Line 2 has the highest mean product sales.
To create this example:
-
In the
Tasks section,
expand the
Graph folder, and then double-click
Bar
Chart. The user interface for the Bar Chart task opens.
-
On the
Data tab,
select the
SASHELP.PRICEDATA data set.
Tip
If the data set is
not available from the drop-down list, click
. In the
Choose a Table window,
expand the library that contains the data set that you want to use.
Select the data set for the example and click
OK.
The selected data set should now appear in the drop-down list.
-
Assign columns to these
roles:
Role
|
Column Name
|
Category
variable
|
productLine
|
Response
variable
|
sale
|
-
To run the task, click
.