<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROC GCHART in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61462#M17449</link>
    <description>Hi Katie,&lt;BR /&gt;
&lt;BR /&gt;
I guess this might be the answer, once u use subgroup option in Var statement...........sub group and frequency variable&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Syntax:subgroup variable name</description>
    <pubDate>Mon, 01 Dec 2008 10:04:51 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-12-01T10:04:51Z</dc:date>
    <item>
      <title>PROC GCHART</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61460#M17447</link>
      <description>Is anyone really familiar with either PROC GCHART or annotating datasets?&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a bar graph with the frequency counts on the inside and unique percentages for each group on the outside. I've successfully made the graph I want in PROC GCHART with the frequencies inside the bars.  However  I can't get PROC GCHART to pull the right percents--it keeps automatically using the percent of my GROUP variable "House_Age" when really I want the percent of my SUMVAR "Frequency".      Is it possible to change which variable GCHART uses to calculate percents or do I need to find a way to do this manually with an annotate statement?&lt;BR /&gt;
&lt;BR /&gt;
Here  is my code:&lt;BR /&gt;
proc gchart data=WORK.&amp;amp;DIRECTORY.;&lt;BR /&gt;
vbar &amp;amp;RESULT. / DISCRETE GROUP=HOUSE_AGE &lt;BR /&gt;
   PATTERNID=MIDPOINT&lt;BR /&gt;
   type=sum	&lt;BR /&gt;
   sumvar=Frequency&lt;BR /&gt;
   inside=sum&lt;BR /&gt;
   outside=pct&lt;BR /&gt;
   maxis=axis1&lt;BR /&gt;
   raxis=axis2 &lt;BR /&gt;
run;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Any advice will be warmly received!&lt;BR /&gt;
&lt;BR /&gt;
Thanks a million,&lt;BR /&gt;
Katie</description>
      <pubDate>Fri, 14 Nov 2008 04:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61460#M17447</guid>
      <dc:creator>EnergizeK</dc:creator>
      <dc:date>2008-11-14T04:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GCHART</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61461#M17448</link>
      <description>Possibly this SAS GCHART DOC link (and excerpt) may help:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/59607/HTML/default/gchart-bar.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/59607/HTML/default/gchart-bar.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
With subgroups, PERCENT displays the percent contribution of each subgroup to the midpoint value of the bar, based on frequency. The PERCENT values for each subgroup total the percent contribution of the bar to the whole. For example, if the percent contribution of the whole bar is 60%, the PERCENT statistic for all the subgroups in that bar are 60% total. To calculate PERCENT based on the SUMVAR= variable, use the FREQ= and TYPE= options. &lt;BR /&gt;
&lt;SNIP&gt;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/SNIP&gt;</description>
      <pubDate>Fri, 14 Nov 2008 19:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61461#M17448</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-11-14T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GCHART</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61462#M17449</link>
      <description>Hi Katie,&lt;BR /&gt;
&lt;BR /&gt;
I guess this might be the answer, once u use subgroup option in Var statement...........sub group and frequency variable&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Syntax:subgroup variable name</description>
      <pubDate>Mon, 01 Dec 2008 10:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GCHART/m-p/61462#M17449</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-01T10:04:51Z</dc:date>
    </item>
  </channel>
</rss>

