A unique value renderer symbolizes based on the value of an attribute.

Referenced by: renderer

Properties

PropertyDetails
authoringInfoAn object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.
backgroundFillSymbolUsed for polygon features. It can only be used for bivariate types and size rendering.
defaultLabelDefault label for the default symbol used to draw unspecified values.
defaultSymbolThe defaultSymbol on the renderer that get assigned to features with no value or features that do not fall within the configured data.
field1Attribute field renderer uses to match values.
field2If needed, specify an additional attribute field the renderer uses to match values.
field3If needed, specify an additional attribute field the renderer uses to match values.
fieldDelimiterString inserted between the values if multiple attribute fields are specified.
legendOptionsA legend containing one title, which is a string describing the renderer in the legend.
typeSpecifies the type of renderer used.
Valid value of this property uniqueValue
uniqueValueGroups[]An array of uniqueValueGroup objects. If present, then uniqueValueGroups should be used in favor of uniqueValueInfos.
uniqueValueInfos[]An array of uniqueValueInfo objects. If uniqueValueGroups is present, then this property should be ignored on rad. In the future, this property will be deprecated and eventually removed.
valueExpressionAn Arcade expression evaluating to either a string or a number.
valueExpressionTitleThe title identifying and describing the associated Arcade expression as defined in the valueExpression property.
visualVariables[]An array of objects used to set rendering properties.

UniqueValue Example

{
"type": "uniqueValue",
"field1": "COUNTRY",
"uniqueValueInfos": [
{
"value": "US",
"label": "US",
"symbol": {
"type": "PointSymbol3D",
"symbolLayers": [
{
"type": "Icon",
"resource": {
"primitive": "circle"
},
"material": {
"color": [
253,
127,
111
]
},
"size": 12
}
]
}
},
{
"value": "Canada",
"label": "Canada",
"symbol": {
"type": "PointSymbol3D",
"symbolLayers": [
{
"type": "Icon",
"resource": {
"primitive": "circle"
},
"material": {
"color": [
126,
176,
213
]
},
"size": 12
}
]
}
},
{
"value": "Brazil",
"label": "Brazil",
"symbol": {
"type": "PointSymbol3D",
"symbolLayers": [
{
"type": "Icon",
"resource": {
"primitive": "circle"
},
"material": {
"color": [
178,
224,
97
]
},
"size": 12
}
]
}
}
]
}