HOW TO
In ArcGIS Pro, assigning various colored symbols to one or more attribute fields in a dataset provides better visualization of spatial data on a map. When there is irrelevant data within the same fields, Arcade expressions and the Symbology tool can be used to further categorize a collection of attribute fields to offer a more focused display of symbology points.
The instructions below describe how to use the Field Calculator in ArcGIS Pro to identify a specific set of attribute fields to be displayed on a map. In this example, the LEVEL field in the Schools_all feature class is used to identify the attribute field symbology points for elementary, high school, and college or university.
Use either one of the workflows below to assign colored symbols to attributes using Arcade expressions.
Note: To retain the values of the attribute, use the solution without creating a new field. If the values of the attribute can be combined, use the solution of creating a new field.
Assign colored symbols to attributes without creating a new field
var <variable name> = $feature.<field name> if (<variable name> == "<field value>") { return "<label name>"; } else if (<variable name> == "<field value>") { return "<label name>"; } else if (<variable name> == "<field value>") { return "<label name>"; } else if (<variable name> == "<field value>") { return "<label name>"; }
Assign colored symbols to attributes by creating a new field
var <variable name> = $feature.<field name> if (<variable name> == "<field value>") { return "<label name>"; } else if (<variable name> == "<field value>") { return "<label name>"; } else if (<variable name> == "<field value>") { return "<label name>"; } else if (<variable name> == "<field value>") { return "<label name>"; }
Get help from ArcGIS experts
Download the Esri Support App