<?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 Legend order in PROC GCHART in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9379#M109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Robert,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Yes, it is the colors that should be ordered the same way as the bars. I should have been more clear. For example, if red is first, the color in the legend should be red first. I did the order as mentioned by Art297 but noticed the colors did not want to get ordered. Any samples on ordering in 9.2 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 13:46:05 GMT</pubDate>
    <dc:creator>jplarios</dc:creator>
    <dc:date>2012-02-22T13:46:05Z</dc:date>
    <item>
      <title>Legend order in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9376#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a proc gchart and have a Legend. The proc outputs barcharts with subgroups. Like goup A with three bars,x,y,z Group B with xxy,z etc. In my case the order of the bars matter ( x needs to go first). How can I make the legend display the same order of the bars.RIght now, no matter what I do, it will display the legend with the color of y then z and then x. I tried many different things and nothing.Any help greatly appreciated. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 23:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9376#M106</guid>
      <dc:creator>jplarios</dc:creator>
      <dc:date>2012-02-21T23:09:45Z</dc:date>
    </item>
    <item>
      <title>Legend order in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9377#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at: &lt;A href="http://support.sas.com/sassamples/graphgallery/PROC_GPLOT.html"&gt;http://support.sas.com/sassamples/graphgallery/PROC_GPLOT.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;sample 24925&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 23:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9377#M107</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-21T23:26:46Z</dc:date>
    </item>
    <item>
      <title>Legend order in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9378#M108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you're wanting the legend colors to be 'stacked' in the same order as the bar segments are stacked(?)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're re-using the same code with different data, sometimes it's not practical to hard-code the desired legend order (you would need to keep re-hard-coding the legend values as the data changes, or do something tricky to generate it dynamically in a macro variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, in 9.3 we've added the new "descending" option for the gchart legend -- it allows you to easily get the legend in descending order (whereas it's usually in ascending order).&amp;nbsp; Here's a little example &amp;amp; explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd50/new_93_sas.htm#desc"&gt;http://robslink.com/SAS/democd50/new_93_sas.htm#desc&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9378#M108</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-02-22T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Legend order in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9379#M109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Robert,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Yes, it is the colors that should be ordered the same way as the bars. I should have been more clear. For example, if red is first, the color in the legend should be red first. I did the order as mentioned by Art297 but noticed the colors did not want to get ordered. Any samples on ordering in 9.2 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9379#M109</guid>
      <dc:creator>jplarios</dc:creator>
      <dc:date>2012-02-22T13:46:05Z</dc:date>
    </item>
    <item>
      <title>Legend order in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9380#M110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would have to hard-code the legend order in 9.2, such as ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;input Salesman $ 1-6 Year Sales;&lt;BR /&gt;datalines;&lt;BR /&gt;Bob&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009&amp;nbsp; 6&lt;BR /&gt;Anna&amp;nbsp;&amp;nbsp; 2009&amp;nbsp; 8&lt;BR /&gt;Carl&amp;nbsp;&amp;nbsp; 2009&amp;nbsp; 9&lt;BR /&gt;Bob&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp; 7&lt;BR /&gt;Anna&amp;nbsp;&amp;nbsp; 2010&amp;nbsp; 9&lt;BR /&gt;Carl&amp;nbsp;&amp;nbsp; 2010 10&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=none order=(0 to 30 by 10) minor=none offset=(0,0);&lt;BR /&gt;axis2 label=none offset=(15,15);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 position=(right middle) across=1 label=none&lt;BR /&gt; shape=bar(.13in,.13in) order=('Carl' 'Bob' 'Anna');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 v=s c=yellow;&lt;BR /&gt;pattern2 v=s c=orange;&lt;BR /&gt;pattern3 v=s c=red;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=a;&lt;BR /&gt; vbar year / discrete type=sum sumvar=sales&lt;BR /&gt; raxis=axis1 maxis=axis2 width=15 space=8&lt;BR /&gt; noframe autoref clipref cref=graycc&lt;BR /&gt; subgroup=Salesman legend=legend1;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-order-in-PROC-GCHART/m-p/9380#M110</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-02-22T13:51:02Z</dc:date>
    </item>
  </channel>
</rss>

