Graphics |
This section shows you how to generate a pie chart that shows how many houses are in each style.
Houses for Sale by Style Pie Chart
Instructions |
To produce a pie chart graph like the one in the previous display, follow this selection path:Tasks Graphics Pie ChartThe Pie Chart window appears.
Pie Chart Window
If the active table is SASUSER.HOUSES, then continue to the next step. Otherwise, select , and then select the SASUSER.HOUSES table. For more information on selecting tables, see Selecting a Table.
If there is an active Subset Data selection (indicated with BY, WHERE, or ROWS next to ), then clear the selection. For more information, see Clearing a Subset Data Selection.
If other task selections exist (for example, a column name is listed for ), then selectFile Newto clear these selections.
To indicate that you want the pie slices to represent the numbers of each style of house in the HOUSES table, select , and then select the STYLE column. For more information, see Selecting a Column.
Adding Titles |
You can customize the graph by adding titles and footnotes, changing the page dimensions, and selecting headings. Refer to Adding Titles for instructions on adding titles to the graph. Add the title Houses for Sale by Style as Title 1 for this graph.
Because the same set of titles and footnotes is used for all SAS/ASSIST tasks, the titles and footnotes most recently used in your SAS/ASSIST session are used unless you change or reset them in the Titles and Footnotes windows.
Running the Graph |
After you have finished setting up the graph, run it by following this selection path:Run SubmitThe graph appears in the Graph window.
Houses for Sale by Style Pie Chart
Printing the Graph |
For most operating environments, you can print your graph by following this selection path from the Graph window:File PrintHowever, some operating environments and hardware may require some set-up prior to printing graphics. If you have trouble printing graphics, then see the SAS companion for your operating environment or contact the SAS Support Consultant at your site for further instructions.
Exiting This Task |
When you are finished viewing or printing your graph, return to the Pie Chart window by using one of the following methods, depending on your operating environment:
To return to the WorkPlace menu or move on to another task, follow the directions in Exiting a Task.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.