SizeInfo Visual Variable

The sizeInfo visual variable defines how size is applied to features based on the values of a numeric field attribute. The minimum and maximum values of the data should be indicated along with their respective size values. You must specify minSize and maxSize or stops to construct the size ramp. All features with values falling in between the specified min and max data values (or stops) will be scaled proportionally between the provided min and max sizes.

Properties

Property Details
expression Deprecated, please use valueExpression in its place. The value which allows a size to be defined based on the map scale. Currently, the only supported expression is, view.scale.
field Attribute field used for size rendering if no valueExpression is provided.
legendOptions Options available for the legend.
maxDataValue The maximum data value.
maxSize Specifies the largest marker size to use at any given map scale. Can be either a fixed number or object, depending on whether the user chose a fixed range or not.
Must be one of the following values:
  • size
    Specifies the marker size to use at any given map scale.
  • Number
minDataValue The minimum data value.
minSize Specifies the smallest marker size to use at any given map scale. Can be either a fixed number or object, depending on whether the user chose a fixed range or not.
Must be one of the following values:
  • size
    Specifies the marker size to use at any given map scale.
  • Number
normalizationField Attribute field used to normalize the data.
stops An array of objects that defines the thematic size ramp in a sequence of data or expression stops. At least two stops are required. The stops must be listed in ascending order based on the value of the value property in each stop. This property is required if minDataValue, maxDataValue, minSize, and maxSize are not defined. This property is also required when setting a size visual variable to the minSize or maxSize properties based on expression (e.g. expression: 'view.scale').
target Only used when sizeInfo is used for polygon outlines.
If property is present, value of this property must be outline
type Specifies the type of visual variable.
Value of this property must be sizeInfo
valueExpression An Arcade expression evaluating to a number. New style is similar to $view.scale. This is used in combination with the target outline propery where the outline looks thinner at smaller scales and thicker at larger scales.
valueExpressionTitle The title identifying and describing the associated Arcade expression as defined in the valueExpression property.
valueUnit A string value indicating the required unit of measurement.

Example

Live sample web maps showing use of the sizeInfo visual variable.

{
  "visualVariables": [
    {
      "type": "sizeInfo",
      "field": "Deaths",
      "valueUnit": "unknown",
      "stops": [
        {
          "value": 1128,
          "size": 80
        }
      ],
      "minSize": 6,
      "maxSize": 37.5,
      "minDataValue": 2814,
      "maxDataValue": 121179
    }
  ]
}

Feedback on this topic?