{
  "title": "PointCloud UniqueValue Renderer",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "PointCloudUniqueValueRenderer allows you to colorize points in a PointCloudLayer based on an attribute. This is done by using unique colors to represent points with equal attribute values.",
  "properties": {
    "colorModulation": {
      "description": "",
      "$ref": "colorModulationInfo_schema.json"
    },
    "colorUniqueValueInfos": {
      "type": "array",
      "description": "Unique value infos.",
      "items": {
        "type": "object",
        "$ref": "colorUniqueValueInfo_schema.json"
      }
    },
    "field": {
      "type": "string",
      "description": "The name of the field that is used for the renderer."
    },
    "fieldTransformType": {
      "type": "string",
      "description": "A transform that is applied to the field value before evaluating the renderer.",
      "enum": [
        "absoluteValue",
        "highFourBit",
        "lowFourBit",
        "moduloTen",
        "none"
      ]
    },
    "legendOptions": {
      "type": "object",
      "description": "A legend containing one title, which is a string describing the renderer in the legend.",
      "$ref": "rendererLegendOptions_schema.json"
    },
    "pointSizeAlgorithm": {
      "description": "",
      "$ref": "pointSizeAlgorithm_schema.json"
    },
    "pointsPerInch": {
      "type": "number",
      "description": "Number of points to draw per display inch."
    },
    "type": {
      "type": "string",
      "description": "Specifies the type of renderer used.",
      "enum": [
        "pointCloudUniqueValueRenderer"
      ]
    }
  },
  "required": [
    "colorUniqueValueInfos",
    "field",
    "type"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "pointCloudUniqueValueRenderer",
        "description": "",
        "code": {
          "renderer": {
            "type": "pointCloudUniqueValueRenderer",
            "pointSizeAlgorithm": {
              "type": "pointCloudFixedSizeAlgorithm",
              "useRealWorldSymbolSizes": false,
              "size": 4
            },
            "pointsPerInch": 10.0,
            "field": "CLASS_CODE",
            "colorUniqueValueInfos": [
              {
                "values": [
                  "1"
                ],
                "label": "1",
                "description": "Unassigned",
                "color": [
                  79,
                  112,
                  181
                ]
              },
              {
                "values": [
                  "2"
                ],
                "label": "2",
                "description": "Ground",
                "color": [
                  170,
                  183,
                  189
                ]
              },
              {
                "values": [
                  "3"
                ],
                "label": "3",
                "description": "Low vegetation",
                "color": [
                  247,
                  255,
                  188
                ]
              },
              {
                "values": [
                  "4"
                ],
                "label": "4",
                "description": "Medium vegetation",
                "color": [
                  241,
                  159,
                  106
                ]
              },
              {
                "values": [
                  "5"
                ],
                "label": "5",
                "description": "High vegetation",
                "color": [
                  211,
                  26,
                  18
                ]
              }
            ]
          }
        }
      }
    ]
  }
}
