HOW TO

Assign colored symbols to attributes using Arcade in ArcGIS Online

Last Published: February 2, 2024

Summary

In ArcGIS Online, 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 Online to identify a specific set of attribute fields to display on a map. In this example, the LEVEL field in the Schools Article Testing feature class is used to identify the attribute field symbology points for elementary, high school, and college or university.

Procedure

  1. Open the map in Map Viewer. Click Layers, and select the <layer name> for editing.
Selecting the layer for editing in the Layers tab in the Map Viewer Contents (dark) toolbar
  1. On the Settings (light) toolbar, click Styles > Expression to open the Arcade Expression dialog box.
The Settings (light) toolbar with the location of the Styles tab and the Expression icon in the Styles pane
  1. Specify the following Arcade expression in the Arcade Expression dialog box.
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>";
}
  1. Rename the New expression, and click OK.
Specifying the Arcade expression and renaming the expression in the Map Viewer Arcade Expression dialog box
  1. Click Styles options in the Styles pane.
The location of the Styles options icon in the Styles pane
  1. Uncheck the Other checkbox. To apply further changes to the symbol style, click the color ramp under Symbol style.
  2. Click Done to close the Style options pane.
The location of the Other checkbox, how to apply further changes to the symbol style and the Done icon to close the Style options pane
  1. Click Done to close the Styles pane.
The location of the Done icon to close the Styles pane and the Legend of the grouped symbology

Article ID: 000026986

Software:
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options