<?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: How to make my graph bars sorted out by descending values? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-my-graph-bars-sorted-out-by-descending-values/m-p/129090#M5057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a XAXIS statement with option REVERSE or option DISCRETEORDER=DATA and sort accordingly. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 16:37:25 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2013-05-03T16:37:25Z</dc:date>
    <item>
      <title>How to make my graph bars sorted out by descending values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-my-graph-bars-sorted-out-by-descending-values/m-p/129089#M5056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I was looking through all discussions but couldn't find a proper answer.&lt;/P&gt;&lt;P&gt;The situation is that I have a bar chart and I cannot find the way to sort it out - descending or ascending.&lt;/P&gt;&lt;P&gt;The code I have is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title 'Tasks done table';&lt;/P&gt;&lt;P&gt;proc sgplot data=go.Tasks_done;&lt;/P&gt;&lt;P&gt;vbar Name / response = Total datalabel group = Total GROUPORDER= ASCENDING;&lt;/P&gt;&lt;P&gt;label total = 'Taks'&lt;/P&gt;&lt;P&gt;name = 'Names';&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and table 'Tasks_done' consists of:&lt;/P&gt;&lt;P&gt;Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;2000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/P&gt;&lt;P&gt;3000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3523_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried to put Descending or Ascending in code, but I couldn't. Lastly I figured out I need to have group option so then I can use Grouporder = ascending/descending. But my chart is not affected...The I read something about changing axis type (because as I understood I need axis to be 'Discrete' type or something like that.) But when I get deeper, it is getting more and more complicated. Can someone help me out with this?? If possible, could You alter my code or show examples so I could understand it better how to do this thing, cuz I am really stuck for some time with this, &lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 16:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-my-graph-bars-sorted-out-by-descending-values/m-p/129089#M5056</guid>
      <dc:creator>Efka</dc:creator>
      <dc:date>2013-05-03T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my graph bars sorted out by descending values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-make-my-graph-bars-sorted-out-by-descending-values/m-p/129090#M5057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a XAXIS statement with option REVERSE or option DISCRETEORDER=DATA and sort accordingly. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 16:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-make-my-graph-bars-sorted-out-by-descending-values/m-p/129090#M5057</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-05-03T16:37:25Z</dc:date>
    </item>
  </channel>
</rss>

