Data visualization with SAS programming

Pie Chart Enhancements

Reply
Super Contributor
Posts: 339

Pie Chart Enhancements

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
SAS Employee
Posts: 1,031

Pie Chart Enhancements

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

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.

Super Contributor
Posts: 297

Pie Chart Enhancements

Posted in reply to RobertAllison_SAS

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

Super Contributor
Posts: 339

Pie Chart Enhancements

Hi Bill,

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

Milton

Super Contributor
Posts: 339

Pie Chart Enhancements

Posted in reply to RobertAllison_SAS

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

Ask a Question
Discussion stats
  • 4 replies
  • 321 views
  • 6 likes
  • 3 in conversation