Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
This is my SAS/Graph version of the graph from p. 35 of the following publication:
(or see screen_capture in 1st link)
Screen Capture
http://www.treasury.gov/initiatives/financial-stability/TARP-Programs/automotive-programs/Documents/chryslerRestCoverSum.pdf
There are a couple of tricks in this graph...
Rather than using gchart's outside=sum to put the labels over the bars, I use annotate
to put my own values there. This lets me rotate them (so they'll fit better), and
also lets me show 1 decimal place on the value (which is a different format than the
default format, used on the left axis).
I also hardcode the last bar's label to say 'Forecast' - I do this programmatically,
so that if the data changes, this label will still always be the last one.
Back to Samples Index