Select to view content in your preferred language

Arcade geometry expression

613
4
Jump to solution
02-08-2024 06:57 AM
Labels (1)
christg
New Contributor II

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.

christg_1-1707404127133.png

 

0 Kudos
2 Solutions

Accepted Solutions
Amir-Sarrafzadeh-Arasi
Occasional Contributor

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

Amir Sarrafzadeh Arasi

View solution in original post

jcarlson
MVP Esteemed Contributor

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.

jcarlson_0-1707408154987.png

 

- Josh Carlson
Kendall County GIS

View solution in original post

4 Replies
Amir-Sarrafzadeh-Arasi
Occasional Contributor

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

Amir Sarrafzadeh Arasi
jcarlson
MVP Esteemed Contributor

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.

jcarlson_0-1707408154987.png

 

- Josh Carlson
Kendall County GIS
christg
New Contributor II

thank you very much. it worked well. 🙂

0 Kudos
christg
New Contributor II

thank you very much. much appreciated. 🙂

0 Kudos