Click here to see the SAS code.
Click here to see the example.

Once again, I use numeric values for the bars (to get them in the exact 
order I want), and I use user-defined format to get them to have the 
desired text.

This time, instead of printing the bar label under the bar, I'm doing that
in the legend (since each bar has a different 'subgroup' each one has a 
different color, and the text can be shown in the legend).  This isn't
the "normal" way things are done in bar charts, but I guess it works :)

For the left-side axis label, I use "label=(angle=90)" to angle it up/down.

And I annotate some labels at the top of the bars.
I use annotate, rather than the inside= option, so that I can
control the color of each one individually (and make a dark label
on the light bar, and vice versa).

Back to Samples Index