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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close