<?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 Proc gchart in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19317#M3924</link>
    <description>Does anyone know how to assign specific colors to values of the Subgroup Variable in Proc gchart when using by-groups?&lt;BR /&gt;
&lt;BR /&gt;
IE:  I'm producing Charts by Month and the Bars have a subgroup "Type" = Light, Medium, Heavy, etc.&lt;BR /&gt;
&lt;BR /&gt;
It seems like Proc gchart assigns the colors for the Subgroup based on the First, Second, Third, .... "Type" it encounters for Each by-group.  The effect isSub-group categories can be coloured differently depending on the Month.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
What I want is for each Type Value to have the same color in every chart.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
    <pubDate>Wed, 15 Apr 2009 17:18:39 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-15T17:18:39Z</dc:date>
    <item>
      <title>Proc gchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19317#M3924</link>
      <description>Does anyone know how to assign specific colors to values of the Subgroup Variable in Proc gchart when using by-groups?&lt;BR /&gt;
&lt;BR /&gt;
IE:  I'm producing Charts by Month and the Bars have a subgroup "Type" = Light, Medium, Heavy, etc.&lt;BR /&gt;
&lt;BR /&gt;
It seems like Proc gchart assigns the colors for the Subgroup based on the First, Second, Third, .... "Type" it encounters for Each by-group.  The effect isSub-group categories can be coloured differently depending on the Month.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
What I want is for each Type Value to have the same color in every chart.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 15 Apr 2009 17:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19317#M3924</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-15T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19318#M3925</link>
      <description>I think this document will help you get started - &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, 16 Apr 2009 13:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19318#M3925</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-04-16T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19319#M3926</link>
      <description>Thanks for the response Bill.&lt;BR /&gt;
&lt;BR /&gt;
The Code structure of your solution has a similar form to a Mechanism I use to Produce separate PDFs for by-groups (another feature I wish SAS would implement) so I should be able to fumble through it.&lt;BR /&gt;
&lt;BR /&gt;
In this case I have worked out a Partial Solution to my problem that Pre-processes the Data to determine all the possible Variable combinations for the By-group, Vbar, &amp;amp; Sub-group and creates Dummy observations so that Every Sub-group is reflected in every (by-group * Vbar combination).  The Dummy Observations have "Zero" for the Quantity I intend to graph.&lt;BR /&gt;
&lt;BR /&gt;
That way, when Proc Gchart encounters Every Sub-group for Every chart it generates in the By-group &amp;amp; Every Column on the x-axis &lt;I&gt;&lt;B&gt;in the same order.&lt;/B&gt;&lt;/I&gt;  &lt;BR /&gt;
&lt;BR /&gt;
Thus: The Colours assigned to the Sub-groups in the First round are the same for every Graph.&lt;BR /&gt;
&lt;BR /&gt;
The only drawback to my solution is That Every Sub-group for Every chart appears in the Legend.  Not a huge problem as it is a relatively small number plus it reminds the User of the categories to expect in other graphs.  I say close enough.&lt;BR /&gt;
&lt;BR /&gt;
Now I plan to use the provided document to improve my fix so that I can Specify the colours to use, which would be sweet.&lt;BR /&gt;
&lt;BR /&gt;
At a glance It appears that the Fix in the Link requires that the User have Prior Knowledge of the Number and Names of the Sub-groups.  Not a problemin this case, but I always prefer Robust techniques to Hard-coding.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS - If you are listening this would be a welcome Feature for a new release.</description>
      <pubDate>Fri, 17 Apr 2009 00:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-gchart/m-p/19319#M3926</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-17T00:28:25Z</dc:date>
    </item>
  </channel>
</rss>

