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

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

This is one way to do multiple "bullet graphs" on the same page,
like Stephen Few describes in his new book.

It uses SAS/Graph 'proc gchart' and does an hbar (horizontal
bar chart), and then annotates the 3 gray areas behind the 
bar (using the annotate 'bar' function) to represent the
performance ranges (such as good/fair/poor).  And then a 
thick line segment is annotated across the bar, representing
the target value.

The automatic bar midpoint label (left axis) is made white
so it blends in with the white background, and custom text
is annotated in it's place (this allows multi-line text
to be more easily positioned).

And, in this particular example, this custom code is wrapped
into a re-usable sas macro -- the macro is called once for
each graph, and then the graphs are drawn on the same page
using 'proc greplay'.


Back to Samples Index