Range properties are set for a layer or stand-alone table using the Properties dialog box. You must set the range definition before you can use the interactive range slider. A range is defined using a single field or a combination of two fields that act as a minimum and maximum definition for the range. Any field used in a range must be a numeric type, such as Integer, Long, Float, or Double.
- For fields containing date values, consider using the Time slider.
To add or update a range definition for a layer, do the following:
- Double-click the layer in the Contents pane to open the Layer Properties dialog box.
- On the Range tab, click Add Range.
- Choose the field that defines the range from the Start Field drop-down list.
By default, the range extent is calculated as soon as you choose a field. If the data is large, it is possible that only a sampling of the data will be used to determine the range extent. In this case, you will see a warning icon next to the Calculate button with a message indicating this situation. Click Calculate to calculate the full range extent using all the rows in the table. Alternatively, you can manually enter the range extent for the layer.
- Optionally, choose a different field that concludes the range from the End Field drop-down list.
The default value of <None> means the span of values within the single Start Field are used to define the range. Use the End Field to further constrain feature appearance.
- Optionally, define an Alias expression for the range.The option is only available for integer-based ranges, and it allows you to define a field or expression that represents the current range values in more descriptive terms. For example, you can use a DissolvedOxygen field as the alias for a DissolvedOxygen range value in fish and display Stressful rather than 5 (ppm) when the range slider is in Single Value view mode. To set a range alias, choose a field from the drop-down list or define the expression by clicking the Expression Builder button .
Note:If your data does not have a field containing an alias, or it has a one-to-many relationship to the range value, you can use an Arcade expression that manually applies a value-alias pair, such as decode ($value, 1, "One", 2, "Two", 3, "Three", "Other").
- Optionally, check View using unique values within the data, for Step. Once enabled, the range slider ribbon settings can be configured to use this layer-defined property to determine the offset when stepping to the next or previous value. These values are often irregularly spaced over the full range extent.
- Click Add.
- To rename the newly added range, click the name in the Layer Properties window and it becomes editable.
- Hover over the range and click the edit button to edit the properties of the range.
- Hover over the range and click the remove button to remove the range entirely.
- Click OK to close the Properties dialog box.
The range slider appears on the right side of the map or scene, and the Range tab to configure range settings appears at the top of the application.