The transparencyInfo visual variable defines the transparency, or opacity, of each feature’s symbol based on a numeric attribute field value.

Referenced by: visualVariable

Properties

PropertyDetails
fieldAttribute field used for setting the transparency of a feature if no valueExpression is provided.
legendOptionsOptions available for the legend for visual variables.
See legendOptions properties table.
normalizationFieldAttribute field used to normalize the data.
stops[]An array of transparencyStop objects.
typeSpecifies the type of visual variable.
Valid value of this property transparencyInfo
valueExpressionAn Arcade expression evaluating to a number.
valueExpressionTitleThe title identifying and describing the associated Arcade expression as defined in the valueExpression property.

legendOptions properties

PropertyDetails
showLegendIndicates whether to show the color/size/opacity ramp in the legend.
titleThe title of the legend.

transparencyInfo Example

Live sample web scene showing use of the transparencyInfo visual variable.

{
"type": "transparencyInfo",
"field": "strength",
"stops": [
{
"value": 21,
"transparency": 60
},
{
"value": 39,
"transparency": 10
}
]
}