Produce the first horizontal bar chart.
Because neither MIDPOINTS= nor DISCRETE is used, the procedure automatically
selects the midpoints. SUBGROUP= divides the bars according to the values
of SEX and automatically generates a legend. AUTOREF adds reference lines
to the chart at each major tick mark. CLIPREF positions the reference lines
behind the bars. COUTLINE= specifies the outline color for the bars.
proc gchart data=reflib.fitness;
hbar age / subgroup=sex
legend=legend1
autoref
clipref
coutline=black
raxis=axis1;
run;