Previous Page | Next Page

The CHART Procedure

BLOCK Statement

Produces a block chart.
Featured in: Producing Block Charts for BY Groups

BLOCK variable(s) </ option(s)>;

Required Arguments


specifies the variables for which PROC CHART produces a block chart, one chart for each variable.


The options available on the BLOCK, HBAR, PIE, STAR, and VBAR statements are documented in Customizing All Types of Charts.

Statement Results

Because each block chart must fit on one output page, you might have to adjust the SAS system options LINESIZE= and PAGESIZE= if you have a large number of charted values for the BLOCK variable and for the variable specified in the GROUP= option.

The following table shows the maximum number of charted values of BLOCK variables for selected LINESIZE= (LS=) specifications that can fit on a 66-line page.

Maximum Number of Bars of BLOCK Variables
GROUP= Value LS= 132 LS= 120 LS= 105 LS= 90 LS= 76 LS= 64
0,1 9 8 7 6 5 4
2 8 8 7 6 5 4
3 8 7 6 5 4 3
4 7 7 6 5 4 3
5,6 7 6 5 4 3 2

If the value of any GROUP= level is longer than three characters, then the maximum number of charted values for the BLOCK variable that can fit might be reduced by one. BLOCK level values truncate to 12 characters. If you exceed these limits, then PROC CHART produces a horizontal bar chart instead.

Previous Page | Next Page | Top of Page