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

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

Note: You will need to disable google toolbar popup blocking
(ie, enable popups) for the charttips/drilldowns in this
example to work.  The following google doc
seems to indicate you can click the 'popup button' to 
add this site to the 'white list', but that doesn't seem
to work in the version of IE/google-toolbar I'm using.
In mine, the note at the bottom of the window says to
"Ctrl+bar" to allow the popup -- that seems to work.

-----

The drilldown in this example is done in the traditional SAS/Graph way,
but using the new "goptions device=activex" rather than gif ...


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

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


Then that variable is specified using the "html=" option in the
SAS/Graph "proc gplot" as follows...


   proc gchart data=mydata;
   hbar st / discrete
    type=sum sumvar=population
    ascending
    nostats
    maxis=axis1
    raxis=axis2
    autoref cref=gray
    clipref
    coutline=black
    cframe=white
    html=htmlvar            <--------  here!
    des="" name="&name" ;
   run;


The output is created using ODS HTML, and "goptions device=activex".
With activex, only *one* output file is produced - a single html file 
containing all the data, drilldown/charttip info, graph characteristics, etc.
The person viewing the output *must* install the SAS/Graph activex
control to view the output (they only have to install it once), and
they must use Internet Explorer to view SAS activex graphs.

Back to Samples Index