%let name=pdf_drill; filename odsout '.'; data mydata; format population comma12.0; input st $ 1-2 population; year=2000; datalines; VA 7078515 NC 8049313 SC 4012012 GA 8186453 FL 15982378 ; run; data mydata; set mydata; 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"'; run; goptions device=pdf; options orientation=landscape; goptions noborder; ODS LISTING CLOSE; ODS PDF file="&name..pdf" style=sasweb; goptions gunit=pct htitle=6 htext=4; axis1 label=none; axis2 label=none minor=none offset=(0,0); pattern v=solid color=cx43a2ca; title1 "Year 2000 U.S. Census Population"; title2 color=gray "GCHART w/ dev=PDF ODS PDF Drilldown"; title3 color=gray "(new v9.3 feature!)"; footnote color=gray "(Each bar has an html drilldown)"; proc gchart data=mydata; hbar st / discrete type=sum sumvar=population ascending nostats maxis=axis1 raxis=axis2 autoref cref=gray clipref coutline=black html=htmlvar des=''; run; quit; ODS PDF CLOSE; ODS LISTING;