Item page
CodePen
Sandbox Download

Census tracts styled with a dot density renderer to show educational attainment levels.

Data-driven styles

Data-driven styles answer questions about your data, such as Where? What? How much? When? or a combination of those questions. A layer’s style is configured with its renderer A renderer is a collection of rules and symbols used to display the data in a layer. Learn more .

A renderer defines how symbols are applied to each feature. In the case of a data-driven visualization, the symbol is always determined based on data (or an attribute value) returned from one of two data sources:

  • Field value (and optional normalization field) - Field values are typically referenced using a field or column name from a layer, a table, or a service.
  • Arcade expression - An expression evaluating to a number or text value. Arcade expressions are typically referenced as a string in the valueExpression property of a renderer or visual variable.

The renderer will match the values returned from these sources to a predefined symbol used to represent each feature, or use the data value to override one of the symbol’s properties, such as size or color.

API support

  1. Color only
  2. Size variable creators only supported for points
  3. Size variable creators not supported in 3D