Unique Value Group

Represents a group of unique value classes (i.e. symbols). This is used to group symbols under a common heading and/or when representing multiple unique values with a single symbol.

Referenced by: UniqueValue Renderer

Properties

Property Details
classes[] Specifies the classes (i.e. symbols) to group under a common heading. Classes may be included here without a heading when representing multiple values with a single symbol.
heading The heading to be displayed for the collection of classes defined in this group.

A group with heading Example

A Unique Value Renderer where multiple unique value info objects are organized under a legend heading.

{
  "classes": [
    {
      "label": "Freeway",
      "symbol": {
        "type": "esriSLS",
        "color": [
          48,
          255,
          234,
          255
        ],
        "width": 0.375,
        "style": "esriSLSSolid"
      },
      "values": [
        [
          "Interstate"
        ],
        [
          "Expressway"
        ]
      ]
    },
    {
      "label": "U.S. Highway",
      "symbol": {
        "type": "esriSLS",
        "color": [
          255,
          98,
          7,
          255
        ],
        "width": 0.375,
        "style": "esriSLSSolid"
      },
      "values": [
        [
          "Major highway"
        ],
        [
          "Minor highway"
        ]
      ]
    },
    {
      "label": "Local Highway",
      "symbol": {
        "type": "esriSLS",
        "color": [
          239,
          55,
          172,
          255
        ],
        "width": 0.375,
        "style": "esriSLSSolid"
      },
      "values": [
        [
          "State hwy"
        ]
      ]
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.