Click here to see the SAS code.
Click here to see the example.
In this example, I do 2 versions of the chart.
In the first, I use the build-in angled horizontal axis tickmark/value labels.
But that only supports 2-line labels. To get the 2-line labels (to be exactly
like the charts in the magazine) you have to annotate them (which I have done
in the 2nd example).
Other tricks at work...
I use the value=(t=1 '0') to put a '0' rather than the default '0%' on the
left axis. I also use major=(height=-2 cells) on the left axis to make the
tickmarks point to the inside of the chart, rather than outside.
I use label=none to suppress the label axis, and I use a title4 with "angle=90"
to print what looks like an axis label along the left side.
And, I annotate some numbers at the top of the bars.
Back to Samples Index