I made a pie chart and I want to move/insert the data label into the legend. I have attached an example below. I also want to reduce the size of the pie chart but keep everything else (footnotes, legend) the same size. I have also attached my code below. data_&cat looks like this types frequency percentage A 8 80% B 2 20% &cat=types proc template;
define statgraph types;
begingraph;
entryfootnote "Other: &other";
layout region;
piechart category=&cat response=percentage/
datalabellocation=inside
datalabelcontent=(response)
datalabelattrs = (size=8pt)
otherslice=false
categorydirection=clockwise
start = 180
name = 'types';
discretelegend 'types' / border=false
title= "&cat: " location=inside
across=1 valign=top halign=left;
endlayout;
endgraph;
end;
run;
proc sgrender data=data_&cat template=types;
run;
... View more