<?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: Custom color of barcharts in proc template in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Custom-color-of-barcharts-in-proc-template/m-p/235179#M43050</link>
    <description>Hi:&lt;BR /&gt;  It depends partly on how you are creating your bar charts: SAS/GRAPH or ODS GRAPHICS. And, what kind of template? A style template or a graph template? Generally, grouped data is given colors by the GDATA1-GDATA12 style elements in a style template. If you change the colors in the style template, then the style template colors will be used unless you have other overriding statements. I have an example of changing bar chart colors in the paper: &lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings10/033-2010.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings10/033-2010.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;But there are other ways to change the color, too. If you always want  one group to be red and the other group to be blue and, if you are using ODS GRAPHICS, then an attribute map is another way to change colors based on a group value. It really depends on how you are creating the graphs.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Wed, 18 Nov 2015 06:14:09 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-11-18T06:14:09Z</dc:date>
    <item>
      <title>Custom color of barcharts in proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-color-of-barcharts-in-proc-template/m-p/235166#M43047</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two groups in my table. How could I customized the color that lets say group 1 is red and group 2 is blue or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my startcolor is red and endcolor is blue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 01:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-color-of-barcharts-in-proc-template/m-p/235166#M43047</guid>
      <dc:creator>JB_DataAnalyst</dc:creator>
      <dc:date>2015-11-18T01:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom color of barcharts in proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-color-of-barcharts-in-proc-template/m-p/235179#M43050</link>
      <description>Hi:&lt;BR /&gt;  It depends partly on how you are creating your bar charts: SAS/GRAPH or ODS GRAPHICS. And, what kind of template? A style template or a graph template? Generally, grouped data is given colors by the GDATA1-GDATA12 style elements in a style template. If you change the colors in the style template, then the style template colors will be used unless you have other overriding statements. I have an example of changing bar chart colors in the paper: &lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings10/033-2010.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings10/033-2010.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;But there are other ways to change the color, too. If you always want  one group to be red and the other group to be blue and, if you are using ODS GRAPHICS, then an attribute map is another way to change colors based on a group value. It really depends on how you are creating the graphs.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 18 Nov 2015 06:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-color-of-barcharts-in-proc-template/m-p/235179#M43050</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-11-18T06:14:09Z</dc:date>
    </item>
  </channel>
</rss>

