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

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

The drilldown in this example is done in the traditional SAS/Graph way ...


A character variable is created in the annotate data, containing the html tags 
for the drilldown (href=) and the text charttip/rollover-text (title=) 
as follows ...

   length html $500;
   html=
    'title='||quote(
     'State: '|| trim(left(st)) ||'0D'x||
     'Population: '|| trim(left(put(population,comma12.0))))||
    ' href="http://www.state.'||trim(left(lowcase(st)))||'.us"';


And the output is created using ODS HTML, and "goptions device=png",
so that a png file is created containing the png, and an html file 
is created containing the html charttips & drilldowns.  The user will
view the html file, and it will display the png image.


Back to Samples Index