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

There are several "tricks" at work in this graph...

First, I used a user-defined format, to get the bars in my chart
to be ordered male/female (rather than alphabetical female/male)
so that my chart would be sorted like the one I was imitating.
I use the numeric value 1 for male and 2 for female, and then 
the user-defined format makes the 1 and 2 print as Male and 
Female in the legend.

I use gchart's "vbar3d" and "shape=cylinder" to make the 
3d cylinder-shaped & shaded cylinders instead of bars.
I use gchart's "outside=sum" to print the numeric labels at 
the top of each bar.

And, for the fanciest "trick", I annotate the little male
and female stick-figures on the bars.  To position these 
stick-figures, I use annotate's xsys/ysys='2' (data coordinates),
and since I'm using a grouped bar chart, I have to assign 
values to the 'group' and 'midpoint' variables (rather than
the 'x' variable you normally use in annotate).  And I set
'y' to 5, so that all the stick-figures are at the same y-height
on the bars.

Back to Samples Index