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

Click here to see the SAS code (gif animation version).
Click here to see the gif animated graph.

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

This is really 2 samples in one...

When you click on the thumbnail, it takes you to invest.htm
which is the regular version, with html charttips and drilldown.

If you then click on a drilldown/hotspot on the above graph, it will take
you to the animated gif version (invest2.htm).

-----

This graph uses several 'tricks'.
First the layout - I use a title statement with angle=-90 and a very tall height
to put an invisible title on the right-hand side of the chart, to make a lot of
extra room where I annotate the table of info (using annotate function='label').
In the table, I left-justify the text, and right-justify the numbers (using
annotate position= ).  The red down-arrow is character 'D' from the sas/graph
'marker' software font. (the 'up' arrow would be character 'C').

The graph itself is pretty straightforward, with a few small tricks.
The plot is actually 2 plot lines overlaid - the first line is the 
regular line showing all the data points and no value markers, then
I overlay a 2nd line which just contains the 2 markers for the beginning
and the end data point (I 'skip' all the other datapoints by using 
missing-values in the data.)  In the horizontal axis, I use 'by quarter'
so that it only does a label every 3 months.  And the number & arrow
in the top/right (representing the last datapoint) is annotated.

Back to Samples Index