%let name=overlib; filename odsout '.'; /* This is an example that SAS Solution Consultant Nikola Markovic taught me, using Erik Bosrup's overlib javascript. It provides multiple drilldown choices for each bar, rather than the usual 1 drilldown. */ /* Make sure you don't have another SAS session open, which might have the 'styles' locked, and prevent you from adding this one! (note that the opacity works in firefox, but maybe not in IE) */ proc template; define style styles.mydrill; parent=styles.htmlblue; style body from body / prehtml='
'; end; run; 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 $1000; htmlvar= 'title='||quote( 'State: '|| trim(left(st)) ||'0D'x|| 'Population: '|| trim(left(put(population,comma12.0))))|| ' href="'||'javascript:void(0);" onclick="return overlib('|| "'State Homepage