BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

Hi,

Is there a way to enhance this pie chart? My output has a lot of white space above and below. How can I make the pie chart become bigger and occupy the extra white space instead? Please see below for the current code.

Thanks!

Milton

%stpbegin;

goptions reset=all;

goptions cback=white device=activex vsize=3in hsize=3in transparency;

%colormac;

pattern1 v=solid color=red;

pattern2 v=solid color=orange;

pattern3 v=solid color=blue;

pattern4 v=solid color=yellow;

legend1 label=none frame;

proc gchart

data=tmp;

pie taxpayer /

sumvar=percentage

slice=arrow

value=inside

explode="CORPORATE"

;

run;

quit;

%stpend;


graph.jpg
4 REPLIES 4
GraphGuy
Meteorite | Level 14

Perhaps change the proportions of your page (such as ...  goptions xpixels=500 ypixels=200;)

Perhaps try using shorter text for the slice labels, or using mixed-case rather than upper-case.

Perhaps try using a smaller font.

Perhaps try using some other devices besides activex (such as png and java).

Perhaps resort to putting the labels inside the slices.

Bill
Quartz | Level 8

better to use a bar chart with all bars the same colour except for the corporate bar ...

milts
Pyrite | Level 9

Hi Bill,

That is a good suggestion. We'll experiment with that one also. Thanks!

Milton

milts
Pyrite | Level 9

Hi Dr. Allison,

Yeah I've been experimenting already with those properties already except for the gdevice. Currently it's activex. Will try to experiment with png and java.

Milton

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 803 views
  • 6 likes
  • 3 in conversation