<?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 Unique label colors using Arcade Expression? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/81381#M3452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a method to write an Arcade expression to allow unique label colors&amp;nbsp;based on different attribute values?&amp;nbsp; This would help to keep from splitting a feature layer into multiple feature layers to have the desired effect, only to have competing labeling rankings between the layers which end up overlapping.&amp;nbsp; I have seen this question posed previously with no positive answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/13567-generate-different-label-stylescolors-based-on-different-attribute-value-in-arcgis-online"&gt;Generate different label styles/colors based on different attribute value in ArcGIS Online.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/332426/custom-arcade-expression-to-change-the-colours-of-text-labels-on-an-arcgis-onlin" title="https://gis.stackexchange.com/questions/332426/custom-arcade-expression-to-change-the-colours-of-text-labels-on-an-arcgis-onlin"&gt;Custom arcade expression to change the colours of text labels on an ArcGIS Online web map? - Geographic Information Syst…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 May 2020 03:40:24 GMT</pubDate>
    <dc:creator>JeanetteHarlow1</dc:creator>
    <dc:date>2020-05-16T03:40:24Z</dc:date>
    <item>
      <title>Unique label colors using Arcade Expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/81381#M3452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a method to write an Arcade expression to allow unique label colors&amp;nbsp;based on different attribute values?&amp;nbsp; This would help to keep from splitting a feature layer into multiple feature layers to have the desired effect, only to have competing labeling rankings between the layers which end up overlapping.&amp;nbsp; I have seen this question posed previously with no positive answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/13567-generate-different-label-stylescolors-based-on-different-attribute-value-in-arcgis-online"&gt;Generate different label styles/colors based on different attribute value in ArcGIS Online.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/332426/custom-arcade-expression-to-change-the-colours-of-text-labels-on-an-arcgis-onlin" title="https://gis.stackexchange.com/questions/332426/custom-arcade-expression-to-change-the-colours-of-text-labels-on-an-arcgis-onlin"&gt;Custom arcade expression to change the colours of text labels on an ArcGIS Online web map? - Geographic Information Syst…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2020 03:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/81381#M3452</guid>
      <dc:creator>JeanetteHarlow1</dc:creator>
      <dc:date>2020-05-16T03:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unique label colors using Arcade Expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/1304885#M70737</link>
      <description>&lt;P&gt;Since this question is the top google result for my search for the same thing, I thought I'd post what I came up with after a bit of synthesizing various bits and pieces I found across the web. I'm still sort of fumbling around with Arcade so there may be a better way to do it...but this is working for me in Pro 3.1 (have not tested in AGOL but assuming it should work there too...)&lt;/P&gt;&lt;P&gt;The following successfully applies my symbology color scheme (green-yellow-orange-scarlet-red, grey for no data) to labels for the Esri Living Atlas AirNow point feature service (&lt;A href="https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/Air%20Now%20Current%20Monitor%20Data%20Public/FeatureServer" target="_blank" rel="noopener"&gt;https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/Air%20Now%20Current%20Monitor%20Data%20Public/FeatureServer&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var aqi = $feature.OZONEPM_AQI_LABEL

if(aqi &amp;lt;= 50){
    return "&amp;lt;CLR red='50' green='200' blue='100' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}
else if(aqi &amp;lt;= 100){
    return "&amp;lt;CLR red='175' green='255' blue='0' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}
else if(aqi &amp;lt;= 150){
    return "&amp;lt;CLR red='255' green='255' blue='50' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}
else if(aqi &amp;lt;= 200){
    return "&amp;lt;CLR red='255' green='150' blue='0' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}
else if(aqi &amp;lt;= 300){
    return "&amp;lt;CLR red='255' green='75' blue='0' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}
else if(aqi &amp;lt;= 500){
    return "&amp;lt;CLR red='255' green='0' blue='75' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}
else {
    return "&amp;lt;CLR red='150' green='150' blue='150' &amp;gt;" + aqi + "&amp;lt;/CLR&amp;gt;";
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Color-coded labels w/Arcade Expression" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74632iBD7E9E2F13134A7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-06-30 123000.png" alt="Color-coded labels w/Arcade Expression" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Color-coded labels w/Arcade Expression&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Update: Welp. It doesn't work in AGOL (new Map Viewer). For the time being I'm going to create label classes there and come back to this battle another day.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/1304885#M70737</guid>
      <dc:creator>AlderMaps</dc:creator>
      <dc:date>2023-06-30T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unique label colors using Arcade Expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/1609757#M95367</link>
      <description>&lt;P&gt;ESRI also has an article on it now as well using Arcade.&lt;/P&gt;&lt;H1&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-apply-different-colors-for-conditioned-labeling--000030963" target="_self"&gt;&lt;FONT size="4"&gt;Apply different colors for conditioned labeling in ArcGIS Pro&lt;/FONT&gt;&lt;/A&gt;&lt;/H1&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 19:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/unique-label-colors-using-arcade-expression/m-p/1609757#M95367</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2025-04-28T19:38:16Z</dc:date>
    </item>
  </channel>
</rss>

