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

This is a sas imitation of a plot from p. 185 of Stephen Few's
book "Show me the Numbers".

I used a few tricks to get this graph exactly like Stephen's...

The main 'trick' here is that for each bar I have 2 obsns in my data.
The first obsn is the value for the space from zero to the minimum value of the gray range.
The 2nd obsn is the value for the max of the range value.  I then do a stacked bar chart
colored (subgrouped) such that the bar segment representing the first value is white
('invisible') and the 2nd one is gray.

I make the midpoint axis white ('invisible') via the axis statement.

I make the response axis gray, and suppress the minor tickmarks.

I used the 'html=' option to specify a variable containing html title=
charttips and href= drilldown.  The charttip shows the min & max of the
salary range for the department.

Back to Samples Index