SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Search||next

Creating Bar and Pie Charts
Lesson Overview


Introduction

To create bar charts and pie charts that display relationships within your data graphically, you can use the GCHART procedure within SAS/GRAPH software. You can create charts to display

  • the distribution of a variable's values (example: sales per month)
  • the relationship between two or more variables (example: sales and expenditures for advertising)
  • the average value of a variable within different categories (example: average purchases by age group)
  • the total value of a variable within different categories (example: total purchases for each age group).

To view a larger version of a bar or pie chart, select an image.

Bar Chart          
Go to enlarged bar chart.          

Pie Chart
     Display enlarged pie chart.

This lesson shows you how to create basic horizontal bar charts, vertical bar charts, and pie charts. You also learn to specify data and statistics and control the pattern and color in charts.

This lesson contains 39 pages and takes approximately 60-90 minutes to complete.


Objectives

In this lesson, you will learn to

  • invoke the GCHART procedure and specify the data set to be used
  • specify the type of chart to be created
  • specify the statistic to be displayed
  • summarize a variable within categories
  • specify variables to be displayed
  • select observations
  • control the pattern and color of bars and slices
  • use RUN-group processing
  • view and store charts.


Prerequisites

Before taking this lesson, you should have completed the following lessons:

Introduction to SAS Programming

||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement