%let name=javafunc; filename odsout "&name..htm"; data mydata; format population comma12.0; input st $ 1-2 population; year=2000; state=stfips(st); datalines; VA 7078515 NC 8049313 SC 4012012 GA 8186453 FL 15982378 ; run; goptions device=java noborder; ODS LISTING CLOSE; ODS HTML file=odsout (title="Java ODS HTML Drilldown Bar Chart") CODEBASE="./codebase_v93" style=minimal gtitle gfootnote parameters=("DRILLDOWNMODE"="Script" "DRILLFUNC"="MyDrill" /* according to S0236345 we also need the following for activex, but I went ahead and left them in here for java too... */ "EXTERNALNAME"="GIDX" "drilltarget"="_self" "DRILLFUNC"="MapDrill") attributes=("NAME"="GIDX") ; title1 color=black "Year 2000 U.S. Census Population"; title2 color=gray "GCHART w/ Java ODS HTML DrillFunc Java Script"; footnote color=gray "(Each bar has a javascript drilldown)"; axis1 label=none; axis2 label=none minor=none offset=(0,0); pattern v=solid color=cx43a2ca repeat=100; 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; run; quit; /* Close the HTML destination and */ /* open the listing destination. */ ods html close; ods listing; /* Create the MyDrill script that is specified on */ /* the ODS HTML statement's DRILLFUNC parameter. */ /* Write the script to the same file that contains */ /* the HTML output from the GCHART procedure. */ data _null_ ; file odsout mod; /* Modify the file rather than replacing it. */ put ' ' ; put ''; run ;