%let name=scat; 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=png noborder; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="GIF ODS HTML Drilldown GPLOT scatter plot") style=sasweb; goptions gunit=pct htitle=6 htext=4; axis1 label=none offset=(5,5); axis2 label=none major=(number=5) minor=none offset=(0,5); symbol1 v=dot height=8 color=cx43a2ca; title1 ls=1.5 "Year 2000 U.S. Census Population"; title2 color=gray "GPLOT with ODS HTML Drilldown"; footnote color=gray "(Each plot marker has an html drilldown)"; proc gplot data=mydata; plot population*st=1 / haxis=axis1 vaxis=axis2 vzero html=htmlvar des='' name="&name"; run; quit; ODS HTML CLOSE; ODS LISTING;