<?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: Changing the bar color in high low plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/727060#M21167</link>
    <description>&lt;P&gt;It is always best to supply the code that you are using so we can see the statements and options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following call to PROC SGPLOT uses the STYLEATTRS statement to assign colors for the bars. Just be aware that which color is assigned to which group depends on the order of the data, so you might need to experiment to get the colors to match the groups in your data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.stocks(where=(Date &amp;gt;= '01JAN2005'd));
  styleattrs datacolors=(blue red green);
  highlow x=date high=high low=low 
    / group=Stock type=bar groupdisplay=cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Mar 2021 11:06:18 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-03-17T11:06:18Z</dc:date>
    <item>
      <title>Changing the bar color in high low plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/726944#M21165</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to change the bar color in the high-low plot without using attrid and dattrmap ? I am trying to plot high-low where their are three bars and I want to sign unique color to each bar based on treatment. Your help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 23:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/726944#M21165</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2021-03-16T23:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the bar color in high low plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/726958#M21166</link>
      <description>&lt;P&gt;If you use a GROUP= option with the name of the variable holding your "treatment" values then you will get a separate color for each value of treatment (assuming you only have 3 values).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need the Group= options for DATTRMAP to apply anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 01:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/726958#M21166</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-17T01:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the bar color in high low plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/727060#M21167</link>
      <description>&lt;P&gt;It is always best to supply the code that you are using so we can see the statements and options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following call to PROC SGPLOT uses the STYLEATTRS statement to assign colors for the bars. Just be aware that which color is assigned to which group depends on the order of the data, so you might need to experiment to get the colors to match the groups in your data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.stocks(where=(Date &amp;gt;= '01JAN2005'd));
  styleattrs datacolors=(blue red green);
  highlow x=date high=high low=low 
    / group=Stock type=bar groupdisplay=cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Mar 2021 11:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-bar-color-in-high-low-plot/m-p/727060#M21167</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-03-17T11:06:18Z</dc:date>
    </item>
  </channel>
</rss>

