Date: Sat, 5 Jun 2004 14:35:00 -0400
Reply-To: "Chen, Bei 2 (GE Consumer Finance)" <Bei.Chen@GE.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Chen, Bei 2 (GE Consumer Finance)" <Bei.Chen@GE.COM>
Subject: Re: SAS/Graph problem
Content-Type: text/plain; charset="iso-8859-1"
<<items.xls>>
> SAS experts:
>
>
> I am learning SAS/Graph. I try to write codes using SAS/Graph to match the pie chart created in Excel (please see the left pie in the attached Excel file. I wrote the codes as follows. but that doesn't match the pie chart created in Excel. How can I improve my codes to match the Excel pie chart as closely as possible: for example the color and orientation of the items and the n=82, n=10 etc.? I think SAS/Graph is kind of hard to use.
>
> goptions htext=4 pct ftext=swiss ;
>
> data one;
> input group $ number;
> cards;
> VCR 82
> VCD 10
> TV 232
> ;
> proc freq;
> tables group/out=pct;
> weight number;
> run;
> proc format;
>
> picture pctfmt (round) 0-high='000%';
> run;
> proc gchart ;
> title h=5 pct 'Percentage of Items by Categories';
> pie group/sumvar=percent noheading fill=s;
> format percent pctfmt.;
> pattern1 v=s c=stpk;
> pattern2 v=s c=depk;
> pattern3 v=s c=vpab;
>
> run; quit;
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|