Varying the color of symbols along a color scheme is a good way to indicate quantitative variations of an attribute. For example, point symbols representing observation stations can be colored along a diverging red-blue color scheme to show relative temperature recordings. Variations in color of line symbols representing roads can indicate traffic volume or speed.
The simplest way to vary symbol color is to set the layer symbology to one of the color-based layer symbology options. Unique values assigns a different color to unique instances of the specified attribute field. You can customize this by modifying each symbol, and adding to, combining, or removing values. Graduated colors classifies qualitative differences with a discrete number of symbol colors. Unclassed colors shows variation in a feature attribute by distributing a color scheme evenly across features. Or, you can refine one of the size-based layer symbology options by setting the color variable to a field or an expression. In addition, you can control the color of symbol layer properties by connecting them to a field of hexadecimal color values. While theoretically you can use more than one of these approaches together on a single layer, be aware that the result may be too complex to be understandable. Use these techniques judiciously.
Set the color variable to a field or an expression
When a layer is symbolized with graduated symbols or proportional symbology, you can also vary the color of the symbols. You can set the color variable to a numeric attribute field or write an expression. The attribute can be the same or different than the one used by the layer symbology. Choose a color scheme to apply to the range of values.
For example, a layer of points representing earthquakes drawn with graduated symbols shows classified circles sized relative to the earthquake's magnitude. The color variable set to a numeric field indicating damage displays the degree of damage for each circle based on colors along a specified color scheme.
- Select the feature layer in the Contents pane.
- On the Appearance tab, in the Drawing group, click the Symbology button.
- In the Symbology pane, click and click Vary symbology by attribute.
- Expand the Color heading.
- Choose a numeric field from the Field menu to vary the color.
- Write an expression to determine color values. Choose <expression> from the Field menu, or click to open the Expression Builder dialog box. Write an expression and click Verify to validate it. Note that although an expression is valid, it may not return a valid numeric value for the color variable. You can filter the Expression Builder dialog box to show only numeric fields to help prevent this. .
- Optionally, choose a Normalization field. Normalization is not available when the color variable is set to an expression.
- Select a color scheme and, optionally, adjust the histogram.
- Check Show legend to add a representation of the color variation to the layer's legend in both the Contents pane and any legends placed on layouts.
- To remove the color variable or the normalization field, choose <none> from the Field or Normalization menus, respectively.