Apply Arcade expressions
ArcGIS Arcade is an expression language used in ArcGIS Pro to customize map elements and manage data, including calculating values and implementing attribute rules. It is unique among expression languages in that it includes feature and geometry data types. Arcade can be used across the ArcGIS platform, although different products support different profiles. Profiles define the environment and rules for how an Arcade expression is evaluated and interpreted.
Overview
- This video was created with ArcGIS Pro 3.8.
In this tutorial, you'll explore how existing Arcade expressions customize the labeling and symbology in a map in ArcGIS Pro. You'll implement additional expressions for labels, symbology, pop-ups, field calculations, and, optionally, attribute rules. Finally, you'll view the map in ArcGIS Online Map Viewer to see the portability of Arcade expressions.
Estimated time: 60 minutes (75 minutes with optional section)
Software requirements:
ArcGIS Pro Basic
ArcGIS Pro Standard is required for the optional attribute rules section
Note:
The quick-start tutorials are updated at each software release. For the best experience, use an online help version that matches your software version.
Open the project
In this project, you'll use Arcade to enhance a map of electric vehicle (EV) charging stations and highways in the United States and manage the data in the supporting layers.
Start ArcGIS Pro and sign in if necessary.
Open a browse dialog box to search for the project in one of the following ways:
On the start page, click Open another project
.In an open project, click the Project tab on the ribbon. In the list of side tabs, click Open. On the Open page, click Open another project
.
On the Open Project browse dialog box, in the navigation pane, under Portal
, click ArcGIS Online
.Note:
If you are signed in to ArcGIS Enterprise
, you must set your active portal to ArcGIS Online to access the tutorial data. If you can't do this, you can download the data from a browser.At the top of the dialog box, in the Search box, type Apply Arcade expressions and press the Enter key.
In the list of search results, click Apply Arcade expressions to select the project package.
Note:
If there is more than one project package with this name, select the package with the Authoritative badge
. In the Owner column, the owner name is ArcGISProTutorials. If you don't get any results, see No search results are returned.Click OK.
The project opens with a map view of the contiguous United States with highways symbolized.

On the ribbon, click the View tab. In the Windows group, click Pane Sets
and click Mapping
.This ensures that the Contents and Catalog panes are open and that other panes are closed.
On the ribbon, click the Map tab. In the Navigate group, click Bookmarks
and click Ontario, California.The map view zooms in to Ontario, California, a city about 40 miles east of Los Angeles. The charging stations, which were not visible at the full extent, are symbolized on the map. The EV Charging Stations layer visibility is set to a minimum scale of 1:5,000,000, meaning it only draws when the map is zoomed to a scale of 1:5,000,000 or larger (more zoomed in).

Explore Arcade expressions
Arcade allows you to customize your map's appearance. You'll find the EV Charging Station layer's existing Arcade expressions and see how they control the labels and symbology.
In the Contents pane, right-click the EV Charging Stations layer and click Attribute Table
.The attribute table opens. Each EV charging station is represented as a row and each attribute is represented as a column, or field. Attributes include station name, address, and access days and times.
The
EV Networkfield stores the name of the charging network that operates each station.EV Networkis the field alias shown in the attribute table. You'll view an expression that uses the underlying field name,EV_Network.Confirm that the EV Charging Stations layer is selected in the Contents pane. On the ribbon, click the Labeling tab. In the Layer group, click Label
.The labels for the EV charging station points appear on the map, displaying the EV charging network powering each station. You'll look at the Arcade expression for the label class to see how it changes the appearance of the text.

In the Label Class group, click Expression
.The Label Class pane appears with an Arcade expression in the Expression box. The label expression is titled Charging Network.

For features in the EV Charging Stations layer, the expression returns the name in the
EV_Networkfield with the word Network removed. As a result, names such as ChargePoint Network and eVgo Network appear in the labels as ChargePoint and eVgo.Dive in:
Replaceis an Arcade function that replaces one text string with another. A function defines a block of statements, or instructions, to run when called.The argument
$feature.EV_Networkuses the$featureprofile variable to reference the current feature and the dot operator to specify theEV_Networkattribute. Profile variables are the input data values to an Arcade expression within a given profile.The text to be replaced and the replacement text are also arguments, each enclosed in quotation marks. The replacement text is an empty string, which effectively removes the word Network and replaces it with nothing.
Next, you'll explore how Arcade is applied to create the symbol classes.
Ensure the attribute table for the EV Charging Stations layer is open. Scroll across the table until you see the
DC Fast Portsfield.The counts of Level 1, Level 2, and DC fast chargers are stored in the
Level 1 Ports,Level 2 Ports, andDC Fast Portsfields, respectively. These fields are used to create the symbol classes in the EV Charging Stations layer.
Close the attribute table.
On the map, a mix of green, orange, and purple points represent the charging stations around Ontario. In the Contents pane, below the EV Charging Stations layer name, the heading Highest Charging Level Available and the symbol classes are displayed. Green represents stations with DC fast charging, orange represents stations with up to Level 2 charging, and purple represents stations with only Level 1 charging.

In the Contents pane, right-click the EV Charging Stations layer and click Symbology
.The Symbology pane appears.
In the Symbology pane, next to Field 1, click Set an expression
.The Arcade Editor dialog box appears with an Arcade expression in the expression box.

The expression assigns symbol classes and labels based on the highest charging level available at each station.
Dive in:
varcreates three variables namedFast,Level2, andLevel1. These variables store the number of DC fast, Level 2, and Level 1 chargers available at each station. The expression uses the$featureprofile variable to access the corresponding attribute values.The
returnstatement uses aWhenfunction to create three symbology classes. It evaluates theFast,Level2, andLevel1variables in order. The first variable with a value greater than 0 determines the station's highest charging level available and assigned label. For example, ifFastandLevel2are 0 and 1, respectively, the station will be classified as Level 2. If all three variables are 0,nullis returned.In the Classes tab on the Symbology pane, in the More drop-down menu, Include all other values is not checked, so
nullvalues are not symbolized. A value ofnullis returned for only 14 of the 18,168 stations in the feature class, which accounts for less than 0.02% of stations.Click Cancel to close the Arcade Editor dialog box.
Customize the labels
Although it's helpful to know the highest charging level available at a station, some cars do not support fast charging. The drivers of these cars will want to know if a DC fast-charging station also has Level 2 charging available. You'll modify the label expression to include all the charging levels available at a station.
Confirm that the EV Charging Stations layer is selected in the Contents pane.
Make the Label Class pane active. (If the pane is closed, right-click the EV Charging Stations layer and click Labeling Properties
.)Click in the Title input box after the word Network and press the spacebar.
Type and Levels Available.
In the Expression box, delete the existing
Replaceexpression.Copy the following Arcade block:
var levels = []; if ($feature.Level1_Ports > 0) { Push(levels, "L1") }; if ($feature.Level2_Ports > 0) { Push(levels, "L2") }; if ($feature.DCFast_Ports > 0) { Push(levels, "DC Fast") }; return Replace($feature.EV_Network, " Network", "") + " (" + Concatenate(levels, ",") + ")";In the Expression box, press Ctrl+V or right-click and click Paste to add the block to the label expression.

The expression returns the network name and, in parentheses, a list of the charging levels available.
Dive in:
Pushis an array function. An array is an object representing a list of elements. The expression initializes the variablelevelsas an empty array. Theifstatements add charging level abbreviations tolevelsvia thePushfunction. For example, if a station has at least one Level 2 charging port,PushaddsL2tolevels. Thereturnstatement uses theConcatenatefunction to combine the network name with a comma-separated list of the charging levels in parentheses.Under the Expression box, click Verify
.The expression is marked as valid.
Tip:
If you get an error message after clicking Verify, check to ensure that the entire expression was pasted.
Click Apply.
The labels update, showing each station's available charging levels. One of the green points is labeled eVgo (L2, DC Fast), meaning it has both Level 2 and DC fast charging capabilities.

On the Quick Access Toolbar, click Save Project
.
Customize symbology
Although public EV charging stations are becoming more prevalent, road trips can still be a challenge for EV drivers. Most hope to find fast-charging stations along their routes, so they can recharge in 30 to 60 minutes (Level 2 chargers can take 12 or more hours to fully charge a vehicle). You'll symbolize each highway segment according to how far away its midpoint is from the nearest fast-charging station.
On the ribbon, on the Map tab, click Bookmarks
and click North Dakota.The map zooms to the north-central area of North Dakota, between Minot and Devils Lake. Since the label class for the stations is set to be visible at a minimum scale of 1:40,000, the labels no longer appear on the map.
Minot and Devils Lake both have several fast-charging stations, with another along the road going south from Minot. Elsewhere on the map, only Level 2 stations are visible.

In the Contents pane, right-click the Highways layer and click Attribute Table
.The attribute table opens. The
Station Distance (mi)attribute stores the distance from each highway segment's centroid to the nearest fast-charging station. You'll symbolize the segments using this attribute.
Note:
The
Station Distance (mi)attribute was derived using the Make OD Cost Matrix Analysis Layer and Solve tools in the Network Analyst toolbox.Close the attribute table.
Right-click the Highways layer and click Symbology
.The Symbology pane becomes active.
In the Symbology pane, on the Primary symbology tab
, click the Primary symbology drop-down arrow and click Unique Values
.Note:
Although distance is a numeric value, you'll apply unique values symbology to the Highways layer. This method can classify features using text returned by an Arcade expression, allowing for meaningful category labels such as distance ranges. With graduated symbology, an expression must return a numeric value, so you would need to configure alphanumeric class labels separately.
Next to Field 1, click Set an expression
.The Arcade Editor dialog box appears.

In the Title box, delete the default title and type Distance to Nearest Fast-Charging Station.
In the expression box, delete the default expression.
Copy the following expression.
var d = $feature.StationDistance_mi; return When( d <= 10.0, "0-10 mi", d <= 20.0, "10-20 mi", d <= 30.0, "20-30 mi", d <= 40.0, "30-40 mi", "40+ mi" );In the expression box, paste the expression.
The expression uses the
StationDistance_miattribute to divide the segments into five distance classes, with class breaks every 10 miles.Click Run
.The Output tab appears with test output, confirming the expression is valid.

Click OK.
The symbol classes are updated, but the reduced line width makes the highways harder to see. In addition, the default color scheme does not communicate progressive proximity to a fast-charging station.

First, you'll change the line width to make the highways more visible.
In the lower half of the Symbology pane, on the Classes tab, click the More drop-down arrow and click Format all symbols.
At the top of the pane, click the Properties tab.
Change the Line width setting to 3 pt. Click Apply.

At the top of the pane, click Return to primary symbology page
.On the Classes tab, click the More drop-down arrow and uncheck Include all other values.
The symbol class for all other values is removed. It isn't needed because the Arcade expression assigns every feature to one of the defined distance ranges.
You'll change the color scheme to one that better conceptualizes distance from a station.
Click the Color scheme drop-down arrow and click More color schemes.
The Choose a color scheme dialog box appears.
In the search box, type yellow green 5 and press the Enter key.
Scroll down, and under ColorBrewer Schemes (RGB), click the Yellow-Green (5 Classes) scheme and click OK.

The layer symbology updates, but it shows the closest segments in pale yellow and the furthest segments in dark green, which is counterintuitive. You'll reverse the symbol order.
Click the More drop-down arrow and click Reverse symbol order.
The segments closest to fast chargers are symbolized in green and the furthest segments are symbolized in yellow.

On the Quick Access Toolbar, click Save Project
.
Configure pop-ups
Pop-ups provide more information about features without cluttering the map view. You'll configure the pop-up for the EV Charging Stations layer to include the number of fast chargers a station has.
On the ribbon, on the Map tab, in the Navigate group, click Bookmarks and click Denver, Colorado.
The map zooms in to an interstate junction near downtown Denver.

Click one of the charging station points on the map.
A pop-up containing information about the station appears. It shows the station name at the top, followed by the network name, address, and hours of operation.

Note:
If you click on a point closely clustered with other points, your pop-up will identify the set of clustered stations at the top. You can click each station's name to reveal the information for that specific station.
Pop-ups present attribute information in a user-friendly format. The default pop-up configuration shows the attribute table with field names in the left column and values in the right column. In this case, the pop-up has been customized to display attributes in paragraph text format.
Close the pop-up.
In the Contents pane, right-click the EV Charging Stations layer and click Configure Pop-ups
.The Configure Pop-ups pane appears. The EV Charging Stations pop-up is titled with the
Station_Namefield and contains a text element. You'll enhance that element by incorporating an Arcade expression that identifies the count of fast chargers at the station.
Recall that the number of fast chargers is stored in the
DC Fast Portsfield of the attribute table.At the bottom of the Configure Pop-ups pane, click Expressions.
On the Expressions page, click New.
The Arcade Editor dialog box appears.
In the Title box, change the title to Has Fast Charger.
In the Name box, change the name to HasFastCharger.
The name can't include spaces, but the title can, enabling a more readable display label in expression list.
Copy the following expression.
if ($feature.DCFast_Ports >= 1) { return $feature.DCFast_Ports + " fast charger(s)." } else { return "no fast chargers." }Paste the expression in the expression box.
The expression returns custom text based on the value in the
DCFast_Portsfield. For example, if a station has 3 fast chargers, it returns the string3 fast charger(s).If the station has 0 fast chargers, or the field value isnull, it returns the stringno fast chargers.Click Run
.The Output tab appears with valid output, confirming the expression is valid.
Click OK.
At the top of the Configure Pop-ups pane, click Back
.Double-click the text pop-up element in the pop-up definition list.

This element contains a series of attribute references that form the existing pop-up text. You'll modify it to include a reference to the Arcade expression you created.

Note:
If spell-checking is turned on (the default setting) unrecognized words are marked with wavy red underlines. You can turn spell-checking off in the proofing options.
Click at the end of the last line, after
{Access_Hours}, and press the Enter key twice.Type This station has and press the spacebar.
Click the Field drop-down arrow and click the Has Fast Charger expression at the bottom of the list.
An expression reference is added to the text element.

Click Back
.On the map, click a green charging station to view its pop-up.

A sentence identifying the number of fast chargers at the station now appears below the original information.
Click an orange charging station to see its pop-up.
The pop-up text confirms what you already know from the layer symbology—that orange and purple stations don't have fast chargers.
Close the pop-up.
Perform an advanced calculation
Arcade can be used to perform advanced calculations, such as those requiring data from multiple layers. You'll implement an expression comparing the number of households that own or lease an EV, an attribute of the Counties layer, to the county's total of fast chargers, a value derived from the EV Charging Stations layer. You'll display the result in the Counties pop-up.
On the ribbon, on the Map tab, click Bookmarks
and click Maine.
The map zooms to the state of Maine.
In the Contents pane, turn off the Highways layer. Optionally, turn off the EV Charging Stations layer for a better view of the county boundaries.
On the map, click any U.S. county. (If you click somewhere in Canada, you won't see a pop-up.)

The county's pop-up appears with the default configuration. The
EV Householdsattribute stores the number of households in the county with electric vehicles. The pop-up expression you'll apply performs a calculation with this value.Close the pop-up.
Ensure the Configure Pop-ups pane is active.
In the Contents pane, click the Counties layer.
The pane displays the default configuration for the Counties layer pop-up.

In the list of pop-up elements, hover over the Fields (13) element and click Remove pop-up element
.At the bottom of the Configure Pop-ups pane, click Expressions.
On the Expressions page, click New.
The Arcade Editor dialog box appears.
Change the expression title to Fast Chargers to EV Households.
Change the expression name to FCtoEVHH.
Copy the following code block.
// Access the EV Charging Stations point layer var points = FeatureSetByName($map, "EV Charging Stations"); // Get the geometry of each county var polygonGeom = Geometry($feature); // Get station points within each county's geometry var pointsWithin = Intersects(points, polygonGeom); // Sum the count of fast chargers in each county var totalFastChargers = Sum(pointsWithin, "DCFast_Ports"); // Return text statement comparing counts of fast chargers and EV households if (totalFastChargers > 0) { return Concatenate( [$feature.NAME, ", ", $feature.STATE_ABBR, " has one fast charger for every ", ROUND($feature.EV_Households / totalFastChargers, 1), " households that own or lease an EV."]) } // If no fast chargers exist, return only count of EV households else{ return Concatenate( [$feature.NAME, ", ", $feature.STATE_ABBR, " has ", $feature.EV_Households, " households that own or lease an EV, and no fast chargers."]) }Paste the block in the expression box.
The expression is more complex than the previous ones. It uses the geometry of the Counties layer to sum the total number of fast chargers across all stations in each county. It then calculates the ratio of households that own or lease an EV to fast chargers and returns the result with custom text.
Dive in:
The
$mapprofile variable enables access to other layers in the map, pulling the DCFast_Ports attribute (the number of fast chargers) from the EV Charging Stations layer. TheIntersectsstatement finds all EV charging station points inside each county. TheSumstatement adds the values in theDCFast_Portsfield for all station points inside each county. Finally, theIfandElsestatements return different text depending on whether the county has any fast chargers.The calculation is performed on the fly, meaning it's not stored with the data but instead calculated each time a pop-up is opened.
The lines that begin with
//are comments. The Arcade compiler ignores comments, meaning they do not affect how the code is run. They help others understand complex expressions and can also be used to provide attribution or links to outside documentation.Click Run
to confirm the expression is valid. Click OK.
The expression appears in the pane.
In the Configure Pop-ups pane, click Back
.In the list of pop-up elements at the top of the pane, click Text
.A new text element appears in the pop-up definition list. You'll populate it with a reference to the expression you just created.
Double-click the new text element and delete the default text.
Click the Field drop-down arrow and click the Fast Chargers to EV Households expression.
An expression reference appears in the text element.
Click Back
.On the map, click any county.
The county pop-up appears. The title identifies the county by name. The body reflects the calculation and text from your expression.

Close the pop-up.
On the Quick Access Toolbar, click Save Project
.
Calculate a field
In addition to calculating values on the fly, Arcade can be used to calculate new fields in the attribute table. You'll use an Arcade expression to calculate the total number of chargers at each EV station.
In the Contents pane, click the EV Charging Stations layer.
If you turned the layer off in the previous section, you may want to turn it back on. It's not necessary, however, because in this section you'll work exclusively with the layer attribute table.
On the ribbon, click the Data tab.
In the Data Design group, click Fields
.The fields view of the table opens. You use the fields view to work with field properties. In the fields view, each field in the EV Charging Stations table is a row, and each field property is a column. The Fields tab appears on the ribbon and is active.
On the ribbon, on the Fields tab, in the Edits group, click New
.A new field with a green row indicator appears at the bottom of the fields view. Its
Field Namecell is editable.Change the field name to Total_Chargers and press the Tab key.
In the
Aliascell, change the alias to Total Chargers and press the Tab key.In the Data Type list, click Short.

On the ribbon, on the Fields tab, in the Manage Edits group, click Save
.Close the fields view of the table.
In the Contents pane, right-click the EV Charging Stations layer and click Attribute Table
.Scroll to the end of the table to see the
Total Chargersfield.By default, all the values are
<Null>.Click the column heading of the
Total_Chargersfield to select the field.In the attribute table toolbar, click Calculate
.The Calculate Field toolbar opens.
On the Calculate Field toolbar, click the Expression Type drop-down arrow and click Arcade.

Click Arcade Editor
.The Arcade Editor dialog box appears.
Copy the following expression.
$feature.Level1_Ports + $feature.Level2_Ports + $feature.DCFast_PortsPaste the expression in the expression box.
The expression adds the values in the three fields that store charger counts. Performing the calculation will write the sum to the new
Total Chargersfield.Click Run
to confirm the expression is valid. Click OK.On the Calculate Field toolbar, click Calculate
.When the process completes, the calculated values populate the
Total Chargersfield.
On the ribbon, click the Edit tab. In the Manage Edits group, click Save
. Click Yes on the Save Edits prompt.Close the attribute table.
On the Quick Access Toolbar, click Save Project
.
Create an attribute rule (optional)
Users with Standard or Advanced licenses can create attribute rules that enforce data integrity. You'll use Arcade expressions to create a rule that calculates the number of chargers when a new record is added or updated in the EV Charging Stations table.
License:
If you have a Basic license, you won't be able to complete this section of the tutorial. Skip to the View Arcade expressions in ArcGIS Online section. To check your license type, click the Project tab on the ribbon. On the settings page, click the Licensing side tab.
In the Contents pane, right-click the EV Charging Stations layer, point to Data Design, and click Attribute Rules
.An attribute rules view opens. On the view, the Calculation tab is active.

Note:
Users with a Basic license will see a message stating that Attribute Rules are read-only.
Click Add Rule.
An editable record for a new calculation rule is added and the New Rule pane appears in the view.
In the New Rule pane, delete the default text in the Rule Name input box and type Calculate total chargers.
The name of the pane changes to match the rule name.
In the Description box, type Calculates the total number of chargers at a station when a record is added or updated.
Click the Field drop-down arrow and click the Total_Chargers field.
Click Expression
.The Arcade Editor dialog box appears.
Copy the following expression.
Sum($feature.Level1_Ports,$feature.Level2_Ports,$feature.DCFast_Ports)Paste the expression in the expression box.
This expression, which uses Arcade's
Sumfunction, produces the same results as the expression applied in the Calculate a field section.Click Run
to confirm the expression is valid. Click OK.The Arcade Editor dialog box closes and the expression appears in the Expression box of the Calculate Total Chargers pane.
Under Triggers, check the Insert and Update check boxes.
The calculation will run any time a record is inserted or updated.
Under Triggering Fields, in the list of active fields, right-click any field and click Deactivate All.
All the fields are moved to the Inactive list.
In the empty list of active fields, click Add From Expression
.The three fields used in the expression are added to the list of active fields. Updating a value in one of these fields—or adding (inserting) a record in the table—triggers the attribute rule to run.

On the ribbon, on the Attribute Rules tab, in the Manage Edits group, click Save
.The calculation rule is saved. You'll add records to the table to observe the impact of the new rule.
Close the Attribute Rules view.
Right-click the EV Charging Stations layer and click Attribute Table
.The attribute table opens.
At the bottom of the table view, click Move to End
to go to the end of the table.If necessary, scroll down, and click Click to add new row.
A record is added to the table. You'll input test data to confirm that the calculation rule works.
In the new record, click the Station Name cell. Type Attribute Test 1 and press the Enter key.
Scroll across the table and double-click the new record's
Level 1 Portscell.Type any number in the cell and press the Tab key.
Type numbers in the cells for the
Level 2 PortsandDC Fast Portsfields, then press the Enter key.Scroll across the table to the
Total_Chargersfield.Although you haven't input anything into the new record's
Total_Chargerscell, it contains the sum of the numbers you typed. The rule you created works as intended.
On the ribbon, click the Edit tab. In the Manage Edits group, click Discard
. Click Yes on the Discard Edits prompt.Close the attribute table.
On the Quick Access Toolbar, click Save Project
.
View Arcade expressions in ArcGIS Online
Arcade works across the ArcGIS system. However, the portability of expressions from ArcGIS Pro to other applications depends on the profiles enabled in each application. You'll explore an existing web map to see which of the expressions you created work in ArcGIS Online.
Tip:
To share your own map to the web, refer to the Share a web map help topic.
Open the How far is the nearest EV charger? map in ArcGIS Online.
A new tab displays the map in ArcGIS Online Map Viewer.
On the Contents (dark) toolbar, click Bookmarks
.The Bookmarks pane opens.
Click Doral, Florida.
The map zooms in to the Miami International Mall in Doral, Florida. The EV charging station labels are formatted just like the ones you generated in ArcGIS Pro.

You'll look at the Arcade expression for the label class to confirm this.
On the Contents (dark) toolbar, click Layers
.Click the EV Charging Stations layer if it is not already selected.
On the Settings (light) toolbar, click Labels
.The Label features pane appears.
If necessary, expand the Class 1 label class section.
Click Use expression
.
The Arcade expression editor appears with a label expression in the expression window. It matches the one you set earlier in the Customize the labels section of the tutorial.

Click Cancel to close the expression editor.
On the map, click one of the EV charging station points.
The pop-up for the feature appears. It includes the same information that you configured in ArcGIS Pro.

You'll look at the Arcade expression in the pop-up configuration to confirm this.
On the Settings (light) toolbar, click Pop-ups
.The Pop-ups pane appears.
Under Options, click Attribute expressions.
In the list of attribute expressions, click Has Fast Charger.
The expression editor opens. The expression window contains the same expression you set in the Configure pop-ups section.

Click Cancel to close the expression editor.
Close the pop-up.
On the Settings (light) toolbar, click Pop-ups
to close the Pop-ups pane.On the Contents (dark) toolbar, click Bookmarks
and click North Dakota.On the map, the Highways layer symbology matches the symbology that you set in ArcGIS Pro.

You'll look at the Arcade expression for the Highways layer symbology to confirm this.
On the Settings (light) toolbar, click Styles
.The Styles pane appears.
On the Contents (dark) toolbar, click Layers
.The Layers pane opens.
Click the Highways layer.
A legend for the Highways layer appears on the map.
In the Styles pane, under Choose attributes, click the Distance to Nearest Fast-Charging Station expression.
The expression editor opens. The expression window contains the same expression that you set to define the Highways layer symbology classes.

Click Cancel to close the expression editor.
You can't check the field calculation expression since it is only used at the time of calculation and not saved to the map. You also can't check the attribute rule expression because attribute rules cannot be used in ArcGIS Online.
In this tutorial, you applied Arcade expressions to improve how map features are displayed and how data is managed in ArcGIS Pro. You also saw how expressions used for labels, symbology, and pop-ups can be shared across the ArcGIS platform, including Map Viewer.
To learn more about ArcGIS Arcade, review the Developer Documentation. To get more practice with Arcade, complete the Try ArcGIS Arcade tutorial series.