GAREABAR Procedure

Concepts: GAREABAR Procedure

The GAREABAR procedure produces a chart based on the values of a chart variable, a width variable, and a sum calculation variable specified by the SUMVAR= option. The chart variable can be either character or numeric. All values of the chart variable are treated as discrete. The chart values are displayed in data order. PROC GAREABAR does not calculate a midpoint.
For the VBAR statement, the width variable defines the width of the bar along the horizontal axis. The SUMVAR= variable determines the height of the bar on the vertical axis.
For the HBAR statement, the width variable defines the width of each bar on the vertical axis. The SUMVAR= variable determines the length of the bar on the horizontal axis.
The width variable, the SUMVAR= option variable, and the SUBGROUP= option variable can be calculated, and displayed as a percentage of the total or as a sum. The default is sum.