Is there a way to force the size of the actual pie to be constant across various versions (ie different variables runs) in GTL? Right now it is dependent on the Category label sizes which can change over different variables causing a wide variety of pie sizes.
here is the GTL code that Im using:
proc template;
define statgraph piechart;
begingraph / labelplacement=SA;
dynamic _var _title _sz _dlc _dll;
entrytitle _title / textattrs=(size=13pt weight=bold);
layout region;
piechart category=_var response=percent /
dataskin=pressed
stat=sum
datalabelcontent= _dlc
datalabellocation= _dll
datalabelattrs=(size=_sz weight=bold);
endlayout;
endgraph;
end;
run;
Thanks!
EJ
I think what Im looking for is something similar to the radius option in gchart but for GTL.
Any ideas?
EJ
I just realized I forgot to add my render code above:
proc sgrender data=q1q2 template=piechart;
where q1 ne '';
dynamic _var = 'Q1'
_title = "Q1: How long have you been a Medicaid provider?"
_sz = '10pt'
_dlc = 'Percent'
_dll = 'Auto'
;
run;
proc sgrender data=q1q2 template=piechart;
where q2 ne '';
dynamic _var = 'Q2'
_title = "Q2: What is your provider type?"
_sz = '10pt'
_dlc = 'Percent'
_dll = 'Auto'
;
run;
No, there is no RADIUS option for GTL Pie Chart, which is a basic component, without many options. This is so because Pie Charts are not very commonly used in the statistical domain. Now, if all your labels are INSIDE, and no other varying size items like legends, you are likely to get the same size pie.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.