<?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: Reg. CHART in SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1866#M829</link>
    <description>Sorry, just swap between YEAR and _NAME_ in the previous program : VBAR _name_ / GROUP = year ...&lt;BR /&gt;
&lt;BR /&gt;
Is that correct, this time ?</description>
    <pubDate>Tue, 12 Dec 2006 08:18:52 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2006-12-12T08:18:52Z</dc:date>
    <item>
      <title>Reg. CHART in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1862#M825</link>
      <description>If this is the data set in excel i can create vertical barchart with A and B in Different Colour for Particular year alone. Is that possible to Make in SAS also. I tried in Proc Gchart.I need more clarity on this can one help me out.&lt;BR /&gt;
&lt;BR /&gt;
	A	B&lt;BR /&gt;
1981	12	13&lt;BR /&gt;
1982	15	19&lt;BR /&gt;
1983	16	20&lt;BR /&gt;
1984	25	16&lt;BR /&gt;
1985	23	32&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Example Chart(Display Like this):&lt;BR /&gt;
l&lt;BR /&gt;
l&lt;BR /&gt;
l&lt;BR /&gt;
l&lt;BR /&gt;
l  A       B&lt;BR /&gt;
l  A       B &lt;BR /&gt;
l  A B   A B&lt;BR /&gt;
l  A B   A B&lt;BR /&gt;
l  A B   A B&lt;BR /&gt;
l--A-B---A-B--------------&lt;BR /&gt;
  1981  1982&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance</description>
      <pubDate>Thu, 30 Nov 2006 12:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1862#M825</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-11-30T12:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. CHART in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1863#M826</link>
      <description>Sorry for the Worst Chart Example (display)</description>
      <pubDate>Thu, 30 Nov 2006 12:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1863#M826</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-11-30T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. CHART in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1864#M827</link>
      <description>I think that what you are looking for is either the GROUP option or the SUBGROUP option in the GCHART procedure. If I understand correctly your example, this should rather be GROUP (side-by-side bars for A and B, correct guess ?).&lt;BR /&gt;
But you should transform your data first. Instead of :&lt;BR /&gt;
YEAR  A  B&lt;BR /&gt;
1981 12 13&lt;BR /&gt;
1982 15 19&lt;BR /&gt;
1983 16 20&lt;BR /&gt;
1984 25 16&lt;BR /&gt;
1985 23 32&lt;BR /&gt;
&lt;BR /&gt;
you should use :&lt;BR /&gt;
YEAR _NAME_ COL1&lt;BR /&gt;
1981      A   12&lt;BR /&gt;
1981      B   13&lt;BR /&gt;
1982      A   15&lt;BR /&gt;
1982      B   19&lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;BR /&gt;
You can easily do so using the TRANSPOSE procedure :&lt;BR /&gt;
PROC TRANSPOSE DATA = dataIn OUT = dataOut ;&lt;BR /&gt;
   VAR a b ;&lt;BR /&gt;
   BY year ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
Then apply to the new dataset :&lt;BR /&gt;
PROC GCHART DATA = dataOut ;&lt;BR /&gt;
   VBAR year / DISCRETE GROUP = _name_ SUMVAR = col1 ;&lt;BR /&gt;
RUN ; QUIT ;</description>
      <pubDate>Thu, 30 Nov 2006 13:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1864#M827</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-11-30T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. CHART in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1865#M828</link>
      <description>I got it but, If A and B combined together of the year 1982 and so on., Rite now it shows the separete display for A and B.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Tue, 12 Dec 2006 06:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1865#M828</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-12-12T06:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. CHART in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1866#M829</link>
      <description>Sorry, just swap between YEAR and _NAME_ in the previous program : VBAR _name_ / GROUP = year ...&lt;BR /&gt;
&lt;BR /&gt;
Is that correct, this time ?</description>
      <pubDate>Tue, 12 Dec 2006 08:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reg-CHART-in-SAS/m-p/1866#M829</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-12-12T08:18:52Z</dc:date>
    </item>
  </channel>
</rss>

