{
  "title": "Raster ClassBreaks Renderer",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "Defines the color of each raster cell based on the value of a numeric attribute. Colors are assigned based on classed ranges of data.",
  "properties": {
    "authoringInfo": {
      "type": "object",
      "description": "An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",
      "$ref": "authoringInfo_schema.json"
    },
    "colorClassBreakInfos": {
      "type": "array",
      "description": "Each element in the array is an object that provides information about a class break associated with the renderer.",
      "items": {
        "type": "object",
        "$ref": "colorClassBreakInfo_schema.json"
      }
    },
    "defaultColor": {
      "description": "The defaultColor on the renderer that get assigned to features with no value or features that do not fall within the configured data.",
      "$ref": "color_schema.json"
    },
    "defaultLabel": {
      "type": "string",
      "description": "Default label for the default symbol used to draw unspecified values."
    },
    "field": {
      "type": "string",
      "description": "The name of the field that is used for the renderer."
    },
    "legendOptions": {
      "type": "object",
      "description": "A legend containing one title, which is a string describing the renderer in the legend.",
      "$ref": "rendererLegendOptions_schema.json"
    },
    "normalizationField": {
      "type": "string",
      "description": "Used when normalizationType is field. The string value indicating the attribute field by which the data value is normalized."
    },
    "normalizationTotal": {
      "type": "number",
      "description": "Used when normalizationType is percent-of-total, this number property contains the total of all data values."
    },
    "normalizationType": {
      "type": "string",
      "description": "Determine how the data was normalized.",
      "enum": [
        "esriNormalizeByField",
        "esriNormalizeByLog",
        "esriNormalizeByPercentOfTotal"
      ]
    },
    "type": {
      "type": "string",
      "description": "Specifies the type of renderer used.",
      "enum": [
        "rasterClassBreaksRenderer"
      ]
    }
  },
  "required": [
    "colorClassBreakInfos",
    "field",
    "type"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "rasterClassBreaksRenderer",
        "code": {
          "renderer": {
            "type": "rasterClassBreaksRenderer",
            "field": "Value",
            "colorClassBreakInfos": [
              {
                "classMinValue": 11,
                "classMaxValue": 27.8,
                "label": "11 - 27.8",
                "color": [
                  245,
                  245,
                  19,
                  255
                ]
              },
              {
                "classMinValue": 27.8,
                "classMaxValue": 44.6,
                "label": "27.6 - 44.6",
                "color": [
                  250,
                  201,
                  18,
                  255
                ]
              }
            ]
          }
        }
      }
    ]
  }
}
