Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
This is a SAS/Graph imitation of this chart:
Click here to see the example.
The trickiest thing was to get the bars in the desired order.
I couldn't use descending, because within each group of the same-height bars
gchart descending would then order them alphabetically. Therefore I assign
a variable to the "data order" and use that as the bar midpoint, and then
generate a user-defined-format on-the-fly to have the bar midpoints print
as a text label (for the beer name).
I annotate the numbers on the bar segments so I can make them different
colors to contrast with the background.
I annotate 3 colored areas behind the graph - a white one at the top
(behind the title), a medium green behind the bars, and a darker
green behind the labels at the bottom of the bars. xsys/ysys is
cleverly used, so these areas show up in the desired location, even
if the layout of the bar chart changes.
Back to Samples Index