Select to view content in your preferred language

Set the color of a point using an Arcade When() statement

313
3
01-31-2025 11:55 AM
MPach
by
Frequent Contributor

I'd like to know if there is a way to set the color of feature layer symbology using an Arcade statement. 

What I'd ideally like to do is something like this, but I can't seem to find the correct syntax. The part in question is the if the color feature can be set. 

When( $feature.Device_Due_Date > DateOnly(), $feature.color = #000000....

 

I'm not certain if color is a property of the $feature that can be accessed, but I think it recall in ArcGIS Online Maps that it's a property that can be set using a hex color as shown above. 

Thank you

0 Kudos
3 Replies
ToddW_stl
Esri Contributor

UPDATE: sorry, I see this is in the ArcGIS Pro section, not ArcGIS Dashboards.  Let me see what else I can find if the info below doesn't help.

for ArcGIS Dashboards - Yes, you can.  Upon a quick skim, this post by my colleague, @JenniferAcunto , describes how to do this.

Dashboards That Pop: Advanced Formatting Troubleshooting

0 Kudos
MPach
by
Frequent Contributor

Thanks for the reply. I think I should have specified that I was trying to do this in ArcGIS Pro. I'm not certain if the syntax is the same as doing this in one of the online applications. 

0 Kudos
ToddW_stl
Esri Contributor

on the surface, it appears to be possible, but I have not tried it (yet).  these may help you figure it out!