Return to Snippet

Revision: 5735
at March 31, 2008 13:32 by webonomic


Initial Code
/*This will display a pie chart with the % sign behind the values*/

data have;
input Id Name $ Percent;
percent=round(percent);
cards;
1 Jim 39.1234
1 John 60.8766
2 Jim 21.2345
2 Jack 33.5555
2 John 46.21
3 Josh 100
4 Jack 11.56
4 Jim 15.6543
4 John 25.1
4 Josh 47.6857
;
run; 


proc gchart data=have;
format percent 3.0;
pie Name / discrete sumvar=Percent
NOLEGEND
SLICE=ARROW
/* PERCENT=INSIDE */
/* VALUE=NONE */
COUTLINE=BLACK;
by Id;
run;
quit;

Initial URL
http://jaredprins.squarespace.com/blog/2008/3/31/pie-charts-and-displaying-percentages.html

Initial Description


Initial Title
Display Percentages in Pie Charts

Initial Tags


Initial Language
SAS