Date: Mon, 7 Jun 2004 13:16:38 -0400
Reply-To: "Chen, Jian" <OZZ6@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Chen, Jian" <OZZ6@CDC.GOV>
Subject: SAS/Graph
Content-Type: text/plain; charset="us-ascii"
Following is a pie chart code, I don't know why the explode='At Risk
Overweight and Obese' doesn't work?
goptions reset=global htext=3 pct ftext=swiss border;
data one;
input group $32. number;
cards;
Normal 133
Underweight 15
At Risk Overweight and Obese 78
;
proc freq;
tables group/out=pct;
weight number;
run;
proc format;
value $groupfmt AtRISk='At Risk for Overweight and Obese'
;
picture pctfmt (round) 0-high='000.0%';
run;
proc gchart ;
title h=4 pct 'Percentage of Children by Weight Categories, CY 2002';
pie group/sumvar=percent noheading fill=s explode='At Risk
Overweight and Obese' coutline=black ;
format percent pctfmt.;
pattern1 v=s c=stpk;
pattern2 v=s c=depk;
pattern3 v=s c=vpab;
format group $groupfmt.;
run; quit;
|