SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Drill-Down Graphs in HTML
Attaching Links to the Primary Chart


Question: Add an option to the HBAR statement to associate the elements of the chart with the variable BarDrill, which holds the HREF link locations.
     data work.disper7b;
        set zone7b.pollen;
        length BarDrill $ 40;
        if pollentype='GRASS' then bardrill='HREF="grass7b.html"';
        if pollentype='WEED' then bardrill='HREF="weed7b.html"';
        if pollentype='TREE' then bardrill='HREF="tree7b.html"';
     run;

     ods listing close;
     ods html path='c:\data\pollen\html' body='sources.html';
     goptions device=gif xpixels=360 ypixels=240;
     proc gchart data=work.disper7b;
        hbar month / sumvar=count group=pollentype discrete
             
     run;

     quit;
     ods html close;
     ods listing;

           

  back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement