<?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, format inside=subpct in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/508961#M72924</link>
    <description>&lt;P&gt;I'm having this exact same problem.&amp;nbsp; The annotate could is turning out to be a little difficult to decipher; I'm not sure what some of it is doing, exactly (e.g., "a", xsys, ysys, position, "E", etc.).&amp;nbsp; Though an experienced Stata and R user, I'm getting up to speed in SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BigD:&amp;nbsp; could you please post the code that worked?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here're my data and code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 359px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24511iB5CA5893879CC863/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Figure 6:  Coalition Progress on Individual Activities (All Coalitions)*/
title1 "Progress on Individual Activities (All Coalitions)";
axis1 label=("Activity") value=(angle=45 rotate=0);
axis2 label=none value=none;
axis3 label=(angle=90 "Percent") value=("0%" "10%" "20%" "30%" "40%" "50%" "60%" "70%" "80%" "90%" "100%") 
	minor=none;
PROC GCHART data=temp;
	format prog1 prog.;
	vbar count / type=percent subgroup=prog1 g100 group=Activity inside=pct
	gaxis=axis1 maxis=axis2 raxis=axis3 width=20;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this graph, which is very nearly what I need, just that the two decimal points give an impression of a great precision that just isn't in the data!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24513iEB9A958ADE978842/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture2.png" alt="Picture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd greatly appreciate any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 22:22:39 GMT</pubDate>
    <dc:creator>dbcrow</dc:creator>
    <dc:date>2018-10-30T22:22:39Z</dc:date>
    <item>
      <title>proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25122#M5665</link>
      <description>I have some gcharts where the response bar are subdivided by another classification.  Unfortunately, the percent number reported within the bar has 2 decimal places which takes up too much room. Is there anyway to get the percentage to display no decimal places?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Bruce&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=new;&lt;BR /&gt;
Vbar age / &lt;BR /&gt;
TYPE=PCT&lt;BR /&gt;
subgroup=disposition_new&lt;BR /&gt;
&lt;B&gt;Inside=subpct&lt;/B&gt;&lt;BR /&gt;
G100&lt;BR /&gt;
GROUP=age&lt;BR /&gt;
NOZERO&lt;BR /&gt;
Raxis=axis1&lt;BR /&gt;
GAXIS=AXIS2&lt;BR /&gt;
width=15&lt;BR /&gt;
space=0&lt;BR /&gt;
maxis=axis3&lt;BR /&gt;
legend=legend3;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 29 Apr 2009 14:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25122#M5665</guid>
      <dc:creator>BigD</dc:creator>
      <dc:date>2009-04-29T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25123#M5666</link>
      <description>Try using a format statement ...</description>
      <pubDate>Mon, 04 May 2009 14:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25123#M5666</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-05-04T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25124#M5667</link>
      <description>I can't get a format on the subpercent because it is caluculated within  the proc.</description>
      <pubDate>Mon, 04 May 2009 18:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25124#M5667</guid>
      <dc:creator>BigD</dc:creator>
      <dc:date>2009-05-04T18:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25125#M5668</link>
      <description>Could you post a few rows of data to go along with your code? Then others can play too.</description>
      <pubDate>Tue, 05 May 2009 14:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25125#M5668</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-05-05T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25126#M5669</link>
      <description>Here is a SAS tech note I found at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website making a general reference to SUBPCT and needing to use the ANNOTATE facility.  I would suggest you open a SAS support track to pursue your interest here.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Sample 24887: Annotate values for each subgroup bar&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/887.html" target="_blank"&gt;http://support.sas.com/kb/24/887.html&lt;/A&gt;</description>
      <pubDate>Tue, 05 May 2009 14:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25126#M5669</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-05T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25127#M5670</link>
      <description>Thanks to all,&lt;BR /&gt;
&lt;BR /&gt;
A little pre-processing of the data to match the example given in the SAS note suggested by Barry and then it worked fine.&lt;BR /&gt;
&lt;BR /&gt;
Thanks to all for your help.</description>
      <pubDate>Thu, 07 May 2009 21:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/25127#M5670</guid>
      <dc:creator>BigD</dc:creator>
      <dc:date>2009-05-07T21:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart, format inside=subpct</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/508961#M72924</link>
      <description>&lt;P&gt;I'm having this exact same problem.&amp;nbsp; The annotate could is turning out to be a little difficult to decipher; I'm not sure what some of it is doing, exactly (e.g., "a", xsys, ysys, position, "E", etc.).&amp;nbsp; Though an experienced Stata and R user, I'm getting up to speed in SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BigD:&amp;nbsp; could you please post the code that worked?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here're my data and code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 359px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24511iB5CA5893879CC863/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Figure 6:  Coalition Progress on Individual Activities (All Coalitions)*/
title1 "Progress on Individual Activities (All Coalitions)";
axis1 label=("Activity") value=(angle=45 rotate=0);
axis2 label=none value=none;
axis3 label=(angle=90 "Percent") value=("0%" "10%" "20%" "30%" "40%" "50%" "60%" "70%" "80%" "90%" "100%") 
	minor=none;
PROC GCHART data=temp;
	format prog1 prog.;
	vbar count / type=percent subgroup=prog1 g100 group=Activity inside=pct
	gaxis=axis1 maxis=axis2 raxis=axis3 width=20;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this graph, which is very nearly what I need, just that the two decimal points give an impression of a great precision that just isn't in the data!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24513iEB9A958ADE978842/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture2.png" alt="Picture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd greatly appreciate any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 22:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-gchart-format-inside-subpct/m-p/508961#M72924</guid>
      <dc:creator>dbcrow</dc:creator>
      <dc:date>2018-10-30T22:22:39Z</dc:date>
    </item>
  </channel>
</rss>

