Arcade expression for vary symbology by color

07-07-2020 09:52 AM
New Contributor III


I am attempting to control the color of my graduated symbols based on a different value from the one used to drive the symbol sizes. Both values are in the same attribute table. I was thinking to do this with an Arcade expression under "Vary symbology by color" however, it doesn't seem to be working as expected. The Arcade expression I am using is:

if ($feature.USER_avg_tem==70){
return rgb(255, 255, 0)

Any advice on how to get this working would be appreciated. 



2 Replies
New Contributor

I have the same problem. I tried with rgb values (with comma and without commas), with the HEX value but nothing. With size and trasparency expressions there are no problems.

Only for assign colours with Arcade expressions

0 Kudos
MVP Regular Contributor

I'm pretty late to the party, but maybe it still helps...

You have to return a string.

return "rgb(255, 255, 0)"
return "rgba(255, 255, 0, 0.5)"
return "red"


The documentation is here:


Have a great day!
0 Kudos