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

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

This example demonstrates the use of the 'html_legend' to add
descriptive hover-text to the legend color-chicklets.

It also demonstrates how to control the stacking-order of the bars.
To control the stacking order of the bar segments, I assign 
numeric values in the desired order (bottom to top), and then
create a user-defined format so the numeric values show up as
the desired text in the legend. (Rather than hard-coding the 
user-defined format, I programmatically generate it from the
data (using proc format cntlin=).

Back to Samples Index