<?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 Colors in Sgplot stacked bar chart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217069#M8092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to find a way to customize colors in a stacked bar chart. The colors are currently blue/red.&lt;/P&gt;&lt;P&gt;Here is an example of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=t.indic_f;&lt;/P&gt;&lt;P&gt;by A;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=t.indic_f noprint;&lt;/P&gt;&lt;P&gt;table RETARD_PAT/out=test3;&lt;/P&gt;&lt;P&gt;by A;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=test3;&lt;/P&gt;&lt;P&gt;vbar A / response=Percent group=RETARD_PAT groupdisplay=stack;&lt;/P&gt;&lt;P&gt;xaxis discreteorder=data;&lt;/P&gt;&lt;P&gt;yaxis grid values=(0 to 100 by 10) label="Percentage of Total with Group";&lt;/P&gt;&lt;P&gt;format RETARD_PAT retards.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done a lot of research to no avail... Thanks!lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 08:25:20 GMT</pubDate>
    <dc:creator>hugues_pellerin</dc:creator>
    <dc:date>2015-05-19T08:25:20Z</dc:date>
    <item>
      <title>Colors in Sgplot stacked bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217069#M8092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to find a way to customize colors in a stacked bar chart. The colors are currently blue/red.&lt;/P&gt;&lt;P&gt;Here is an example of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=t.indic_f;&lt;/P&gt;&lt;P&gt;by A;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=t.indic_f noprint;&lt;/P&gt;&lt;P&gt;table RETARD_PAT/out=test3;&lt;/P&gt;&lt;P&gt;by A;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=test3;&lt;/P&gt;&lt;P&gt;vbar A / response=Percent group=RETARD_PAT groupdisplay=stack;&lt;/P&gt;&lt;P&gt;xaxis discreteorder=data;&lt;/P&gt;&lt;P&gt;yaxis grid values=(0 to 100 by 10) label="Percentage of Total with Group";&lt;/P&gt;&lt;P&gt;format RETARD_PAT retards.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done a lot of research to no avail... Thanks!lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 08:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217069#M8092</guid>
      <dc:creator>hugues_pellerin</dc:creator>
      <dc:date>2015-05-19T08:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Colors in Sgplot stacked bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217070#M8093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should post it at GRAPH forum ,not this forum . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217070#M8093</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-05-19T12:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Colors in Sgplot stacked bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217071#M8094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And include the version of SAS used as options have been added with later releases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 14:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217071#M8094</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-19T14:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Colors in Sgplot stacked bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217072#M8095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A good idea for a sticky this.&amp;nbsp; If your having any graph issues or need some examples on things, search this extremely helpful blog:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" title="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty much everything you can imagine is covered, normally with sgplot and template examples.&amp;nbsp; In your case you might get away with %modstyle() macro call:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_odsgraph_sect056.htm" title="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_odsgraph_sect056.htm"&gt;SAS/STAT(R) 9.22 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 14:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217072#M8095</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-05-19T14:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Colors in Sgplot stacked bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217073#M8096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS 9.3 or greater, you can create an attributes map to assign attributes (including color) to specific group values. If you do not care about specifically assigning colors, and you have SAS 9.4 or greater, you can use the DATACOLORS option on the new STYLEATTRS statement to control those colors without modifying the ODS style. Modifying the ODS style is always an option in any release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 14:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-in-Sgplot-stacked-bar-chart/m-p/217073#M8096</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-05-19T14:25:52Z</dc:date>
    </item>
  </channel>
</rss>

