<?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 Color: Green for type A, scale of yellow - red for type B, white for type C in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342527#M15073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently am using two layers to display outages vs non-outages, however I really need them to be a single layer so that dashboard / app components can count them together.&amp;nbsp;Outages are currently yellow - red based on duration (older they get the redder they get), and non-outages are&amp;nbsp;always green. This looks perfect on the map, but I can't figure out how to do this in a single layer to make what I want to happen on the dashboard / apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial thought was to use an arcade expression&amp;nbsp;to return the color ie RGB(123,0,0) for an outage and RGB(0,255,0) for a non-outage. However, I can't seem to be able to define the color AS an expression, I can only determine the color BASED ON an expression value.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2020 22:36:59 GMT</pubDate>
    <dc:creator>AndyH</dc:creator>
    <dc:date>2020-06-10T22:36:59Z</dc:date>
    <item>
      <title>Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342527#M15073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently am using two layers to display outages vs non-outages, however I really need them to be a single layer so that dashboard / app components can count them together.&amp;nbsp;Outages are currently yellow - red based on duration (older they get the redder they get), and non-outages are&amp;nbsp;always green. This looks perfect on the map, but I can't figure out how to do this in a single layer to make what I want to happen on the dashboard / apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial thought was to use an arcade expression&amp;nbsp;to return the color ie RGB(123,0,0) for an outage and RGB(0,255,0) for a non-outage. However, I can't seem to be able to define the color AS an expression, I can only determine the color BASED ON an expression value.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 22:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342527#M15073</guid>
      <dc:creator>AndyH</dc:creator>
      <dc:date>2020-06-10T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342528#M15074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/409482"&gt;Andy H&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although you mention that you want to create a color based on the attributes; outages vs non-outages and time of the outage, you can also create an expression that returns a classified value (non-outage, outage time range 1, outage time range 2, etc) and assign the symbology accordingly. Would that be something you are after or do you have to&amp;nbsp;manipulate&amp;nbsp;the color directly by Arcade?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 12:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342528#M15074</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-11T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342529#M15075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thank you for taking the time to respond!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn’t have to be by arcade, but I really like the color scale being gradual, so I’d prefer not to have it in 'bins'. The other problem is that I don’t want the colors to be green, red, blue, yellow (ie random) nor do I want all of them to be shades of red etc, they've got to be individually distinct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 14:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342529#M15075</guid>
      <dc:creator>AndyH</dc:creator>
      <dc:date>2020-06-11T14:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342530#M15076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/soldstatic"&gt;soldstatic&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds a lot like you are&amp;nbsp;trying to use&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/mapping/layer-properties/attribute-driven-color-in-symbology.htm" title="https://pro.arcgis.com/en/pro-app/help/mapping/layer-properties/attribute-driven-color-in-symbology.htm"&gt;Attribute-driven color in symbology—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;. I have seen that there were some problems in the past, but I have the idea that this should be working now. Let me test something out and I will get back to you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 21:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342530#M15076</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-11T21:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342531#M15077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/409482" target="_blank"&gt;Andy H&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found what you are looking for. Let's say that we have a featurelayer with 3 types of outages (see values A, B and C in field Outage Type) and the data when the outage was reported (field Outage Date):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/496310_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the Outage Type is "B" the color should vary from yellow to orange to red, where red indicate that most time has passed. Like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/496311_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get there you will nee to do the following. First define the symbology based on the outage type and assign the green and white colors to A and C. Then you will have to go into the second tap "vary the symbology by attribute":&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/496312_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to create the colors for outage type "B", you will have enable the option "Allow symbol property connections":&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/496316_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you do this, you can now create the color effect for outage type B based on the date. Click on the symbol for outage type B:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/496317_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will now be able to enter the properties, and activate the layers and to the right hand side you will see a grey icon that will allow you to define how to vary in this case the color.&amp;nbsp;In my case the symbol is already blue since I already defined the attribute mapping:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/496318_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will open an interface where you can select an existing field or you can define an Arcade expression. I use the Arcade expression to define the scale of colors:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-7 jive-image" src="https://community.esri.com/legacyfs/online/496319_pastedImage_8.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the colors should vary from yellow (most recent outages) to red (most dated outages) you can use the DateDiff function to calculate the difference between the current date and the date stored in the Outage Date field. Since to go from yellow, through orange to red you just vary the green&amp;nbsp;intensity from 255 to 0, you can use a simple calculation. In my case my maximum time was 11 days so I divide the calculated days by 11 invert the result&amp;nbsp; and multiply by 255. Then I construct the text to return "rgb(255, green, 0)" and that is all. If your green value will be out of the range from 0 to 255, it will be limited to 0 - 255.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Arcade expression:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; days &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Abs&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DateDiff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OutageDate&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"days"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; green &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Round&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1.0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;days &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;11.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;255&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"rgb(255,"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; green &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;",0)"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you run into any problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342531#M15077</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342532#M15078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/409482"&gt;Andy H&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you&amp;nbsp;have a chance of looking at the solution provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2020 17:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342532#M15078</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-27T17:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342533#M15079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Been meaning come back in here and yes I did! It worked great! I changed it around&amp;nbsp;to make the max at about 24 hrs and the rest would be whatever percentage of 24 hrs we were at, and so far I think it works just great. Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 13:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342533#M15079</guid>
      <dc:creator>AndyH</dc:creator>
      <dc:date>2020-06-29T13:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Color: Green for type A, scale of yellow - red for type B, white for type C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342534#M15080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/409482"&gt;Andy H&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad to hear that&amp;nbsp;it worked for you. Thanks for letting me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for/m-p/342534#M15080</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-30T13:05:51Z</dc:date>
    </item>
  </channel>
</rss>

