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

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

This is a SAS/Graph imitation of: ethanol_original.jpg


The "trick" in this bar chart is to take the total bar value,
and split it into several obsns in the data set, and assign a
different 'subgroup' value to each of those obsns, so that 
gchart can color the subgroups separately.  Then assign a bunch
of pattern statements to control the colors, alternating
between green & blue.

One improvement I made over the original is that I angled all the 
text values the same way as the y-axis label -- that way, users
only have to turn their head in 1 direction to read all the text
(rather than turning it 1 way to read the y-axis label, and turn 
it the other way to read the other text).

Also, when you mouse over the bars, you can see the values in the
mouse-over text box, which the original chart doesn't have.

Back to Samples Index