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-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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