<?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: How to color features specific HEX colors using conditional symbology with arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1555519#M89800</link>
    <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#examples-8" target="_blank"&gt;Text functions | ArcGIS Arcade | Esri Developer&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 18:02:37 GMT</pubDate>
    <dc:creator>ODWC_GIS</dc:creator>
    <dc:date>2024-11-05T18:02:37Z</dc:date>
    <item>
      <title>How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1282961#M68430</link>
      <description>&lt;P&gt;Hi all, I'm a newbie to ArcGIS Pro, and most of the things I know I've either taught myself, read about online, or I remember from a bit of ArcMap training I had a few years ago. I have a hyper-specific question, and I'm struggling to find other community posts that even sort-of help. Apologies in advance if my jargon is wrong.&lt;/P&gt;&lt;P&gt;Basically, I have a feature class with a bunch of polygons (rooms within a building), and I am trying to display the symbology by the "Unit" that's assigned to that polygon. That much is simple. However, I have a pre-determined list of HEX color codes that are assigned to each unit, and I'd like to be able to use that list of color codes in Arc so that I can keep everything consistent. I can add the colors manually, but obviously that's super time consuming and doesn't help if I add more values and everything re-randomizes. I'd like to build an expression in Arcade that just automatically colors my map, as needed. I don't think Arc takes HEX color codes, so I can just convert to rgb, that's not a big issue. Below is my code that I've pieced together from other help forums, but it's not accomplishing what I need.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e_ruda_0-1682530871940.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69178i585B61CE39F98FC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e_ruda_0-1682530871940.png" alt="e_ruda_0-1682530871940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Like I mentioned before, I'm a complete newbie, and even newer to Arcade coding, so any and all help is appreciated. Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Edit: I have ArcGIS Pro 2.7.0 if that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1282961#M68430</guid>
      <dc:creator>e_ruda</dc:creator>
      <dc:date>2023-04-26T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1283020#M68436</link>
      <description>&lt;P&gt;Just to make sure, are you entering this expression in the Vary symbology by attribute section of the symbology pane under color?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielMiranda2_0-1682537772105.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69205iC66068C51CE72B74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielMiranda2_0-1682537772105.png" alt="DanielMiranda2_0-1682537772105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, this help doc explains how the RGB code should be output. It needs to be a string,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/attribute-driven-color-in-symbology.htm" target="_blank"&gt;Attribute-driven color in symbology—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;with just rgb(r, g, b).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your code as a starting point could look like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if($feature.UNIT == "unit A"){
   return "rgb(230, 149, 167)"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 19:40:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1283020#M68436</guid>
      <dc:creator>DanielMiranda2</dc:creator>
      <dc:date>2023-04-26T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1283031#M68437</link>
      <description>&lt;P&gt;Hi thank you so much! So when I run that code, it does correctly identify the right unit, but it changes the value and the label, when I want it to change the actual symbol. This is what I'm getting back:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e_ruda_0-1682539402762.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69209i157BD5C3223B8E14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e_ruda_0-1682539402762.png" alt="e_ruda_0-1682539402762.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is the color I'm expecting for the symbol:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e_ruda_1-1682539431742.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69210i3451A6C98761DF8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e_ruda_1-1682539431742.png" alt="e_ruda_1-1682539431742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 20:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1283031#M68437</guid>
      <dc:creator>e_ruda</dc:creator>
      <dc:date>2023-04-26T20:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1283488#M68497</link>
      <description>&lt;P&gt;If you have color values stored in the attribute table, you can use symbol property connections to change the color of each feature based on attributes. The colors should be formatted like this:&lt;/P&gt;&lt;P&gt;For hex values: &lt;FONT face="courier new,courier"&gt;#eb4034&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;For rgb values:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;rgb(123,45,67)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Check the box to &lt;EM&gt;Allow symbol property connections&lt;/EM&gt; in the Symbology pane, Vary symbology by attribute tab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JesseWickizer_0-1682616200531.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69343i440F35F9DA53ED5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JesseWickizer_0-1682616200531.png" alt="JesseWickizer_0-1682616200531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Primary symbology tab of the Symbology pane, select Single Symbol and click on the symbol to edit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JesseWickizer_1-1682616291868.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69344iCE2F3837CB7D1FC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JesseWickizer_1-1682616291868.png" alt="JesseWickizer_1-1682616291868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click the connection icon next to the fill color.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JesseWickizer_3-1682616373353.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69346i4F53EEA13E418DC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JesseWickizer_3-1682616373353.png" alt="JesseWickizer_3-1682616373353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Pick the field containing the color values for each record, or create a more complex formula if you can't add hex values to the attribute table. You may also need to use a formula to format the color values if you don't have the # character in front of the hex values, or if the RGB values are split into 3 separate fields.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JesseWickizer_4-1682616460889.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69347i1703FA6854F19620/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JesseWickizer_4-1682616460889.png" alt="JesseWickizer_4-1682616460889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The fill colors are derived from the HEX field in the data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JesseWickizer_5-1682616510908.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69348i75AD61BC9091CA4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JesseWickizer_5-1682616510908.png" alt="JesseWickizer_5-1682616510908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 17:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1283488#M68497</guid>
      <dc:creator>JesseWickizer</dc:creator>
      <dc:date>2023-04-27T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1401185#M80991</link>
      <description>&lt;P&gt;Is it possible for the hex colours from the attribute table to be displayed in the Contents pane, so that they can be reflected in a layout legend?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adam_Inglis_0-1711489492134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99158i0F5A68B861D9B961/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adam_Inglis_0-1711489492134.png" alt="Adam_Inglis_0-1711489492134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adam_Inglis_1-1711489510233.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99159iF118A95BCEF71EC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adam_Inglis_1-1711489510233.png" alt="Adam_Inglis_1-1711489510233.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adam_Inglis_2-1711489521411.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99160i32E88AD4B1074B61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adam_Inglis_2-1711489521411.png" alt="Adam_Inglis_2-1711489521411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 21:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1401185#M80991</guid>
      <dc:creator>Adam_Inglis</dc:creator>
      <dc:date>2024-03-26T21:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1484591#M84144</link>
      <description>&lt;P&gt;How do you write the hex color to the feature table?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 17:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1484591#M84144</guid>
      <dc:creator>Anthony_Herman</dc:creator>
      <dc:date>2024-06-04T17:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to color features specific HEX colors using conditional symbology with arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1555519#M89800</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#examples-8" target="_blank"&gt;Text functions | ArcGIS Arcade | Esri Developer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 18:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-color-features-specific-hex-colors-using/m-p/1555519#M89800</guid>
      <dc:creator>ODWC_GIS</dc:creator>
      <dc:date>2024-11-05T18:02:37Z</dc:date>
    </item>
  </channel>
</rss>

