<?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/146217#M38823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally the approach would be to sort or order the data by an appropriate variable the first group seen is on the bottom. The values in this case look like all you need is to either use an ORDER BY Arb_Totalt_red clause in your SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often I end up adding a variable to represent a final order after seeing the first version of the chart to do the sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 14:24:51 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-09-16T14:24:51Z</dc:date>
    <item>
      <title>Proc Gchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Gchart/m-p/146215#M38821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;I have some problems with Proc Gchart.&lt;/P&gt;&lt;P&gt;As you see in the attached graph, the biggest bars are at the top of the graph but I rather want the biggest bars at the bottom of the graph&lt;/P&gt;&lt;P&gt;For example, I want the orange bar to be at the bottom of the graph, does anyone know how I can manage to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the graph in enterprise guide, but I’ll attach the code that generates the graph and hopefully someone can solve my problem with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;&lt;P&gt;&lt;IMG alt="proc gchart.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7419_proc gchart.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE VIEW WORK.SORTTempTableSorted AS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT T.AAA, T.Arb_Totalt_red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM WORK.QUERY_FOR_VECKOARBETSTID_HE_0000 as T&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN1 COLOR=CXFF9900;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN2 COLOR=BLUE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN3 COLOR=RED;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN4 COLOR=YELLOW;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN5 COLOR=CX339966;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN6 COLOR=CXFF9900;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN7 COLOR = _STYLE_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN8 COLOR = _STYLE_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN9 COLOR = _STYLE_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN10 COLOR = _STYLE_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN11 COLOR = _STYLE_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATTERN12 COLOR = _STYLE_;&lt;/P&gt;&lt;P&gt;Legend1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSITION = (MIDDLE RIGHT OUTSIDE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABEL=(&amp;nbsp;&amp;nbsp; "Legend")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;Axis1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WIDTH=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MINOR= &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (NUMBER=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABEL=(&amp;nbsp;&amp;nbsp; " ")&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Axis2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WIDTH=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABEL=(&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t;/P&gt;&lt;P&gt;PATTERN4;&lt;/P&gt;&lt;P&gt;PATTERN5;&lt;/P&gt;&lt;P&gt;PATTERN6;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 09:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Gchart/m-p/146215#M38821</guid>
      <dc:creator>Sennahlake</dc:creator>
      <dc:date>2014-09-16T09:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Gchart/m-p/146216#M38822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TBH I don't really use GChart as now using sgplot or GTL, so not sure how useful my response will be here.&amp;nbsp; What I think you would need to do is to explicitly set YAXIS values to be (40, 35, 30, 25, 20...) i.e. in reverse.&amp;nbsp; Not sure how you would do it in GChart but below is some syntax for sgplot:&lt;/P&gt;&lt;P&gt;yaxis label="Label" values=(40,35,30,25,20,15,10,5,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add, the SAS help on SGPLOT:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#xaxis-stmt.htm"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#xaxis-stmt.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 09:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Gchart/m-p/146216#M38822</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-16T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Gchart/m-p/146217#M38823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally the approach would be to sort or order the data by an appropriate variable the first group seen is on the bottom. The values in this case look like all you need is to either use an ORDER BY Arb_Totalt_red clause in your SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often I end up adding a variable to represent a final order after seeing the first version of the chart to do the sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Gchart/m-p/146217#M38823</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-16T14:24:51Z</dc:date>
    </item>
  </channel>
</rss>

