<?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: Controlling the color of the xaxistable values for missing values of the colorgroup variable in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937807#M24878</link>
    <description>&lt;P&gt;By default, the missing color is special, and it is retrieved from the active ODS style. However, if you use an attributes map instead of STYLEATTRS, you can control all of the colors, including "missing".&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 17:45:35 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2024-07-31T17:45:35Z</dc:date>
    <item>
      <title>Controlling the color of the xaxistable values for missing values of the colorgroup variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937802#M24876</link>
      <description>&lt;P&gt;Coloring the xaxistable values using colorgroup and styleattrs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First scenario, there is one color per group as specified in the styleattrs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table class as
        select put(age,best.-l) as age
             , case when age in (12,13) then '12-13'
                    when age in (14,15) then '14-15' 
                    else 'Other'
               end as agegrp
             , mean(height) as mean_height
        from sashelp.class
        group by age;
quit;

proc print data=class noobs;
run;

proc sgplot data=class;
    vbarbasic age / response=mean_height;
    xaxistable mean_height / colorgroup = agegrp;
    styleattrs datacontrastcolors=(black green red);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Second scenario, only the non missing groups take a color given in styleattrs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table class as
        select put(age,best.-l) as age
             , case when age in (12,13) then '12-13'
                    when age in (14,15) then '14-15' 
                    else ' ' /*different from scenario 1*/
               end as agegrp
             , mean(height) as mean_height
        from sashelp.class
        group by age;
quit;

proc sgplot data=class;
    vbarbasic age / response=mean_height;
    xaxistable mean_height / colorgroup = agegrp;
    styleattrs datacontrastcolors=(/*black*/ green red);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there an option to control the color of xaxisvlues for the missing value of the variable given in colorgroup while using styleattrs?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937802#M24876</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2024-07-31T17:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the color of the xaxistable values for missing values of the colorgroup variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937807#M24878</link>
      <description>&lt;P&gt;By default, the missing color is special, and it is retrieved from the active ODS style. However, if you use an attributes map instead of STYLEATTRS, you can control all of the colors, including "missing".&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937807#M24878</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-07-31T17:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the color of the xaxistable values for missing values of the colorgroup variable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937874#M24882</link>
      <description>Thank you Dan</description>
      <pubDate>Thu, 01 Aug 2024 06:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-the-color-of-the-xaxistable-values-for-missing/m-p/937874#M24882</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2024-08-01T06:52:53Z</dc:date>
    </item>
  </channel>
</rss>

