%let name=pie6; filename odsout '.'; data a; input NAME $ 1-8 VALUE; cards; Name A 5 Name B 6.8 Name C 9.2 ; run; data a; set a; length htmlvar $500; htmlvar='title='||quote( 'Name: '|| trim(left(name)) ||'0D'x|| 'Value: '|| trim(left(value)) ) ||' '|| 'href="sct1.htm"'; run; run; GOPTIONS DEVICE=gif; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="Exploded Doughnut") style=minimal; goptions noborder; goptions gunit=pct htitle=6 ftitle="albany amt/bold" htext=4.25 ftext="albany amt/bold"; pattern1 v=psolid color=cx9999ff; /* light blue */ pattern2 v=psolid color=cx993366; /* purplish */ pattern3 v=psolid color=cxffffcc; /* pale yellow */ title "Exploded Doughnut Chart"; proc gchart data=a; donut name / type=sum sumvar=VALUE explode="Name A" angle=0 /* 0 = 3-o'clock position */ ascending /* sort the slices in ascending order, clockwise */ noheading /* otherwise you get an extra 'title' saying what statistic you're using */ value=inside /* where to place the 'value' label */ slice=outside /* where to place the 'slice' label */ coutline=black html=htmlvar des="" name="&name" ; run; quit; ODS HTML CLOSE; ODS LISTING;