Horizontal and vertical
bar charts display the magnitude of data with bars, each of which
represents a category of data. The length or height of the bars represents
the value of the chart statistic for each category.
The following output
shows a vertical bar chart that displays the number of responses for
the five categories from the survey data. The following statements
produce the output:
proc chart data=survey;
vbar response / sumvar=count
axis=0 to 200 by 50
midpoints='Always' 'Usually'
'Sometimes' 'Rarely' 'Never';
run;
The following output
shows the same data presented in a horizontal bar chart. The two types
of bar charts have essentially the same characteristics, except that
horizontal bar charts by default display a table of statistic values
to the right of the bars. The following statements produce the output:
proc chart data=survey;
hbar response / sumvar=count
midpoints='Always' 'Usually'
'Sometimes' 'Rarely' 'Never';
run;