Hello.
I don't know how to use Arcade yet.
I want to make a conditional display with the data of a table in the form of dots of different colors. Each row of the table contains columns with x and y coordinates and A and B data. I want an arcade code to display the data on the map as follows:
- if A is greater than B, then display the points in yellow
- if A is equal to B, then display the points in blue
Can anyone help me?
Thank you for your help.
Solved! Go to Solution.
Dear Christg,
I hope you are well,
You can use this Arcade script for separating the points based on Data A and Data B field values.
var column1 = $feature.Data A;
var column2 = $feature.Data B;
if (column1 > column2)
{ return "#FFFF00"; // Yellow color }
else { return "#0000FF"; // Blue color }
Hope it helps
Simple enough! Keep in mind that when working with Arcade for symbology, you will get categories.
Iif($feature.A > $feature.B,
'Yellow',
'Blue'
)
It's still up to you to go into each category and adjust the color.
Dear Christg,
I hope you are well,
You can use this Arcade script for separating the points based on Data A and Data B field values.
var column1 = $feature.Data A;
var column2 = $feature.Data B;
if (column1 > column2)
{ return "#FFFF00"; // Yellow color }
else { return "#0000FF"; // Blue color }
Hope it helps
Simple enough! Keep in mind that when working with Arcade for symbology, you will get categories.
Iif($feature.A > $feature.B,
'Yellow',
'Blue'
)
It's still up to you to go into each category and adjust the color.
thank you very much. it worked well. 🙂
thank you very much. much appreciated. 🙂