AnsweredAssumed Answered

Color: Green for type A, scale of yellow - red for type B, white for type C

Question asked by soldstatic on Jun 10, 2020
Latest reply on Jun 30, 2020 by xander_bakker

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. Outages are currently yellow - red based on duration (older they get the redder they get), and non-outages are 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.

 

My initial thought was to use an arcade expression 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. 

Outcomes