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

This was a fun one!  :-)

I came up with a fictitious product called 'Patriot Pops', and
made a simple bar chart (using 'proc gchart') showing the sales
in various cities.

Then, to liven up this chart, I used the pattern statement's 
"image=" option to fill the bars with the popsicle image.

Then I created a red-white-blue gradient shaded background 
using annotate.  Each strip of color is an annotated 'bar' of color.
I use annotate's when='b' to draw the color/shaded bars 'before'
the rest of the graph is drawn, which puts the colors behind the
rest of the graph.

I also add charttip/flyover-text using gchart's "html=" option.

Back to Samples Index