<?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: Displaying side-by-side subgroups using gchart and vbar in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90960#M289745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked, thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jul 2013 05:20:03 GMT</pubDate>
    <dc:creator>shaknon</dc:creator>
    <dc:date>2013-07-27T05:20:03Z</dc:date>
    <item>
      <title>Displaying side-by-side subgroups using gchart and vbar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90958#M289743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to graph data similar to the following data set "Employees":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Age&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;19&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;18&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;38&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2001&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used gchart to graph the data as follows:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13747764582838677" jivemacro_uid="_13747764582838677" modifiedtitle="true"&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;gchart&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;data &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;= Employees;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar&lt;SPAN class="s1"&gt; Age / &lt;/SPAN&gt;MIDPOINTS&lt;SPAN class="s1"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;to&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;by&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;subgroup&lt;SPAN class="s1"&gt; = Year ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the chart to display the midpoints on the x-axis (10 age categories) and the frequency of each age category on the y-axis for each year (i.e. 2000 and 2001). I want the year subgroups to be displayed side by side for each age category. However, with this code I get the 2001 bars stacked on top of the 2000 bars for each age category. I looked online and I read many examples such as this &lt;A href="http://support.sas.com/kb/42/871.html"&gt;example&lt;/A&gt;, but I am not sure why my code is not displaying the subgroup bars side by side as illustrated in the previous example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 18:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90958#M289743</guid>
      <dc:creator>shaknon</dc:creator>
      <dc:date>2013-07-25T18:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying side-by-side subgroups using gchart and vbar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90959#M289744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try&lt;/P&gt;&lt;P&gt;vbar year/ group age;&lt;/P&gt;&lt;P&gt;format age chartage.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where chartage is a custom format that looks something like&lt;/P&gt;&lt;P&gt;Proc format;&lt;/P&gt;&lt;P&gt;value chartage&lt;/P&gt;&lt;P&gt;0-5 = ' 0 -5'&lt;/P&gt;&lt;P&gt;6-15 = ' 6-15'&lt;/P&gt;&lt;P&gt;16-25= '16-25'&lt;/P&gt;&lt;P&gt;(etc);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the example doesn't use MIDPOINTS and SUBGROUP is within GROUP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 20:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90959#M289744</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-07-25T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying side-by-side subgroups using gchart and vbar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90960#M289745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked, thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 05:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-side-by-side-subgroups-using-gchart-and-vbar/m-p/90960#M289745</guid>
      <dc:creator>shaknon</dc:creator>
      <dc:date>2013-07-27T05:20:03Z</dc:date>
    </item>
  </channel>
</rss>

