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

As good as "proc gchart" is at producing bar charts, it has it's
limitations -- in particular, when you need to show a *very* large
number of bars in the same chart, it is difficult for gchart to draw 
an outline of each bar, and then fill it in with a color (you simply
run out of pixels at a certain number of bars).

In this example, I use a 'trick' to create what looks like a bar chart,
showing a bar for each minute, for an entire 24-hour time period.

I do this using "proc gplot" - each bar is actually made up of 3 
line segments, and these line-bars are separated by inserting 
missing values between them in the data, and using the "skipmiss"
option in the gplot (this causes gplot to not interconnect these
line/bar segments).

I put a tickmark at every 1-hour time increment, along the y-axis.

One limitation ... in normal gchart bar charts, you can use html
title= charttip/flyover-text, but when using gplot line segments to
simulate micro-bars you can't have title= charttips since line segments
don't have any 'area' and therefore don't support that.  (If you 
really wanted title charttips, you'd need to use markers at the ends
of the line segments, and then you could put title= charttips on 
these markers).

Back to Samples Index