Vary symbology by rotation

You can vary the rotation of symbols by an attribute to give an indication of direction. For example, arrow point symbols representing weather observations can use rotation to indicate wind direction.

Wind speed and direction over the Gulf of Mexico near Corpus Christi, Texas
The grid-based symbols on this map use color to show wind speed and rotation as a secondary variable to indicate wind direction.

Only point symbols on point feature layers, or the template (point) symbols on polygon features using graduated symbols and proportional symbols can be rotated with a rotation variable. Line feature layers do not have an associated rotation variable. You can also set rotation to random values within a specified range for a natural appearance. For example, point symbols representing exposed rocks near a shoreline could be randomly rotated to look more natural.

Set the rotation variable to a field or an expression

  1. Select the feature layer in the Contents pane.
  2. On the Appearance tab, in the Drawing group, click Symbology Symbology.
  3. In the Symbology pane, on the Vary symbology by attribute tab Vary symbology by attribute, expand the Rotation heading. In 2D layers, you will work with a single direction. In the case of a layer in the 3D Layers category of a scene, you can specify a rotation for any of the three axes, Tilt (X), Roll (Y), or Direction (Z). While you can set a rotation for all three axes simultaneously, be aware that it will be very difficult to discern three variable values in a scene this way.
    • Choose a numeric field from the Field menu to vary the symbol rotation.
    • Choose <random> from the Field menu, and set the rotation range by specifying Minimum and Maximum degree values. Rotating symbols randomly is a good way to provide visual variety for nonthematic layers.
    • Write an expression to determine rotation. Choose Custom from the Field menu, or click the Set an expression button Set an expression to open the Expression Builder dialog box. Write an expression and click Verify Verify to validate it. Note that although an expression is valid, it may not return a valid numeric value for the rotation variable. You can filter Filter the Expression Builder dialog box to show only numeric fields to help prevent this.

      Learn more about writing expressions in the Arcade language

  4. Choose the Rotation Style.
    • Geographic rotation has a zero in the North direction and rotation is calculated clockwise.
    • Arithmetic rotation has a zero direction to the East and rotation is counterclockwise. This is the default.
  5. To remove the rotation variable, choose <none> from the Field menu.
Caution:

Expressions are not saved by the layer if you change the rotation variable to read from a field instead of an expression. You can save the expression from the Expression Builder dialog box by clicking Export Export before making changes.

Related topics