BookmarkSubscribeRSS Feed
esjackso
Quartz | Level 8

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

3 REPLIES 3
esjackso
Quartz | Level 8

I think what Im looking for is something similar to the radius option in gchart but for GTL.

Any ideas?

EJ

esjackso
Quartz | Level 8

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;

Jay54
Meteorite | Level 14

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1865 views
  • 0 likes
  • 2 in conversation