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

---------------------------------------------------------------

See my blog for more information about this graph!


This is a SAS/Graph imitation/enhancement of ...
http://1.bp.blogspot.com/_ioMvop4WC5s/SUbOWQZDgHI/AAAAAAAAAQ8/X6OPRqtc8As/s400/Christmas_Graph.jpg

Here are the tricks used...

I assign a value (barnum) based on the original order of the data,
and use that to plot my bar chart.  I then make the name of the 
movie show up (instead of barnum) by creating a user-defined format.
I create this user-defined format, on-the-fly, based on the text 
values in the data set (this is a little-known, but very powerful,
technique in SAS).

I angle the values along the y-axis label and x-axis bar midpoints
using the angle= options in the axis statements.

I remove the space between the bars, and I annotate a star
positioned at the top of the tallest bar.

Back to Samples Index