CHART Procedure

Requirement: You must use at least one of the chart-producing statements.
Tips: Supports the Output Delivery System. For details, see Output Delivery System: Basic Concepts in SAS Output Delivery System: User's Guide.

You can use the ATTRIB, FORMAT, LABEL, and WHERE statements. For more information, see Statements with the Same Function in Multiple Procedures. You can also use any global statement. For a list, see Global Statements in SAS Statements: Reference.

Syntax

PROC CHART <option(s)>;
BLOCK variable(s) </ option(s)>;
BY <DESCENDING> variable-1
<…<DESCENDING> variable-n>
<NOTSORTED>;
HBAR variable(s) </ option(s)>;
PIE variable(s) </ option(s)>;
STAR variable(s) </ option(s)>;
VBAR variable(s) </ option(s)>;

Table of Procedure Tasks

Statement Task Example
PROC CHART Statement Produce a chart  
BLOCK Statement Produce a block chart Ex. 6
BY Statement Produce a separate chart for each BY group Ex. 6
HBAR Statement Produce a horizontal bar chart Ex. 5
PIE Statement Produce a PIE chart  
STAR Statement Produce a STAR chart  
VBAR Statement Produce a vertical bar chart Ex. 1, Ex. 2, Ex. 3, Ex. 4