<?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 gchart: maintain data order in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11920#M190</link>
    <description>I would like to maintain the order of my data according to the variable q1 ("Strongly Agree" "Agree" "Disagree" "Strongly Disagree") in the following code:&lt;BR /&gt;
proc gchart data=bar6; &lt;BR /&gt;
	hbar role / discrete &lt;BR /&gt;
 	type=sum sumvar=perq&lt;BR /&gt;
 	subgroup=q1&lt;BR /&gt;
&lt;BR /&gt;
"role" is either "manager" or "employee".&lt;BR /&gt;
I would like the subgroup bars on my gchart (ie q1) to be in the order given above (along with the legend having that order).&lt;BR /&gt;
Also, I would like to maintain the colors used in my legend (eg "Strongly Agree" is always red, "Agree" is always orange, etc).&lt;BR /&gt;
 &lt;BR /&gt;
I created a varible q where "Strongly Agree"=1, "Agree"=2, etc and sorted accordingly. &lt;BR /&gt;
Is there an option for order=data?</description>
    <pubDate>Wed, 04 Nov 2009 19:07:15 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-11-04T19:07:15Z</dc:date>
    <item>
      <title>gchart: maintain data order</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11920#M190</link>
      <description>I would like to maintain the order of my data according to the variable q1 ("Strongly Agree" "Agree" "Disagree" "Strongly Disagree") in the following code:&lt;BR /&gt;
proc gchart data=bar6; &lt;BR /&gt;
	hbar role / discrete &lt;BR /&gt;
 	type=sum sumvar=perq&lt;BR /&gt;
 	subgroup=q1&lt;BR /&gt;
&lt;BR /&gt;
"role" is either "manager" or "employee".&lt;BR /&gt;
I would like the subgroup bars on my gchart (ie q1) to be in the order given above (along with the legend having that order).&lt;BR /&gt;
Also, I would like to maintain the colors used in my legend (eg "Strongly Agree" is always red, "Agree" is always orange, etc).&lt;BR /&gt;
 &lt;BR /&gt;
I created a varible q where "Strongly Agree"=1, "Agree"=2, etc and sorted accordingly. &lt;BR /&gt;
Is there an option for order=data?</description>
      <pubDate>Wed, 04 Nov 2009 19:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11920#M190</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-04T19:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: gchart: maintain data order</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11921#M191</link>
      <description>1. use variable q instead of q1 in chart; 2.create format for 1,2,3 to display strongly,agree,etc; 3.define format for variable q in proc gchart.</description>
      <pubDate>Wed, 04 Nov 2009 21:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11921#M191</guid>
      <dc:creator>abdullala</dc:creator>
      <dc:date>2009-11-04T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: gchart: maintain data order</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11922#M192</link>
      <description>here's a link an example for keeping the colours constant ... &lt;A href="http://support.sas.com/kb/24/874.html" target="_blank"&gt;http://support.sas.com/kb/24/874.html&lt;/A&gt;</description>
      <pubDate>Thu, 05 Nov 2009 14:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/gchart-maintain-data-order/m-p/11922#M192</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-11-05T14:15:21Z</dc:date>
    </item>
  </channel>
</rss>

