AggregateField

Defines a field or statistical com.arcgismaps.arcade.ArcadeExpression for summarizing aggregated data from an AggregationFeatureReduction. Feature reduction uses statistical methods to aggregate geoelements into logical groups based on their location. Attribute values for each group (AggregateGeoElement) can be summarized for any numeric field using a specified AggregateStatisticType, such as the average, maximum, or sum. A common workflow is to summarize aggregated groups with the number of geoelements they represent.

Since

200.3.0

Constructors

Link copied to clipboard
constructor(name: String, statisticExpression: ArcadeExpression, statisticType: AggregateStatisticType)

Creates an AggregateField object.

constructor(name: String, statisticFieldName: String, statisticType: AggregateStatisticType)

Creates an AggregateField object.

Properties

Link copied to clipboard

A display name for the field that appears in a com.arcgismaps.mapping.popup.Popup, label, and other UI elements.

Link copied to clipboard

A name that uniquely identifies the aggregate field within the AggregationFeatureReduction.aggregateFields collection. Clusters will not draw correctly if AggregateField.name is empty or does not match the field name used by AggregationFeatureReduction.renderer. For example, an AggregateField that summarizes population values might have the alias population_sum.

Link copied to clipboard

An Arcade expression that must evaluate to either a string or a number. The expression is evaluated for each geoelement represented by the AggregateGeoElement and the result of the expression is summarized using the given statistic type.

Link copied to clipboard

An attribute name from the source dataset that contains numeric values to summarize. Alternatively, an Arcade expression (AggregateField.statisticExpression) can be used instead of an AggregateStatisticType. If present, this value always takes precedence over AggregateField.statisticExpression.

Link copied to clipboard

Defines the type of statistic for summarizing values returned from AggregateField.statisticFieldName or AggregateField.statisticExpression.