<?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 How to use the color pallet for Heatmaps using &amp;quot;Color Hex&amp;quot; codes in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922177#M24506</link>
    <description>&lt;P&gt;I am creating a heatmap. I was using my personal choice of colors, But there are other colors that don't have the name to write in the "Rang attribute Map Dataset"( "rattrap" dataset in my code). How Can I use the different colors using the color hex codes or any other codes? I tried replacing color codes with color names, but it didn't work. thank you for your suggestions and help.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Present output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1711653244065.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95008iFC15AF5C249C0132/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1711653244065.png" alt="SASuserlot_0-1711653244065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;This are the colors I want to use instead of present colors in my output&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1711653086145.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95005iECCFAEB8452EC2EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1711653086145.png" alt="SASuserlot_0-1711653086145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data = sashelp.cars noprint;
table origin*type / out = cars(keep = count origin type);
run;

data attrmap;
retain id "myid";
length min 4. max $5.;
input min max $ color $;
datalines;
0 10 green
11 20 yellow
21 75 orange
76 _max_ red
;
run;

ods html;
proc sgplot data=cars rattrmap=attrmap  noautolegend;
heatmapparm x=origin y=type
colorresponse=count/ rattrid=myid outline name='range';
text x=origin y=type text=count / textattrs=(size=8pt);
gradlegend 'range'/title= 'Range of cars';
yaxis fitpolicy=split label="Type";
xaxis label="Origin";
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 19:14:12 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2024-03-28T19:14:12Z</dc:date>
    <item>
      <title>How to use the color pallet for Heatmaps using "Color Hex" codes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922177#M24506</link>
      <description>&lt;P&gt;I am creating a heatmap. I was using my personal choice of colors, But there are other colors that don't have the name to write in the "Rang attribute Map Dataset"( "rattrap" dataset in my code). How Can I use the different colors using the color hex codes or any other codes? I tried replacing color codes with color names, but it didn't work. thank you for your suggestions and help.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Present output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1711653244065.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95008iFC15AF5C249C0132/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1711653244065.png" alt="SASuserlot_0-1711653244065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;This are the colors I want to use instead of present colors in my output&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1711653086145.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95005iECCFAEB8452EC2EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1711653086145.png" alt="SASuserlot_0-1711653086145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data = sashelp.cars noprint;
table origin*type / out = cars(keep = count origin type);
run;

data attrmap;
retain id "myid";
length min 4. max $5.;
input min max $ color $;
datalines;
0 10 green
11 20 yellow
21 75 orange
76 _max_ red
;
run;

ods html;
proc sgplot data=cars rattrmap=attrmap  noautolegend;
heatmapparm x=origin y=type
colorresponse=count/ rattrid=myid outline name='range';
text x=origin y=type text=count / textattrs=(size=8pt);
gradlegend 'range'/title= 'Range of cars';
yaxis fitpolicy=split label="Type";
xaxis label="Origin";
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 19:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922177#M24506</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-03-28T19:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the color pallet for Heatmaps using "Color Hex" codes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922195#M24507</link>
      <description>&lt;P&gt;Replace the "#" with "cx" (e.g. #000000 becomes cx000000)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 20:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922195#M24507</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-03-28T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the color pallet for Heatmaps using "Color Hex" codes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922199#M24508</link>
      <description>&lt;P&gt;Perfect. It worked. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 20:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-the-color-pallet-for-Heatmaps-using-quot-Color-Hex/m-p/922199#M24508</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-03-28T20:28:00Z</dc:date>
    </item>
  </channel>
</rss>

