{
  "title": "authoringInfo",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "The authoringInfo is 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 an authoring client, their selections are remembered. Non-authoring clients can ignore it. Properties for color/size/transparency sliders, theme selection, classification information, and additional properties are saved within this object.",
  "properties": {
    "classificationMethod": {
      "type": "string",
      "description": "Used for classed color or size. The default value is `esriClassifyManual`.",
      "enum": [
        "esriClassifyDefinedInterval",
        "esriClassifyEqualInterval",
        "esriClassifyManual",
        "esriClassifyNaturalBreaks",
        "esriClassifyQuantile",
        "esriClassifyStandardDeviation"
      ],
      "default": "esriClassifyManual"
    },
    "colorRamp": {
      "type": "object",
      "$ref": "colorRamp_schema.json"
    },
    "field1": {
      "$ref": "field_authoringInfo_schema.json"
    },
    "field2": {
      "$ref": "field_authoringInfo_schema.json"
    },
    "fields": {
      "type": "array",
      "description": "An array of string values representing field names used for creating predominance renderers.",
      "items": {
        "type": "string"
      }
    },
    "focus": {
      "type": "string",
      "description": "Optional. Used for Relationship renderer. If not set, the legend will default to being square.",
      "enum": [
        "HH",
        "HL",
        "LH",
        "LL"
      ]
    },
    "lengthUnit": {
      "type": "string",
      "description": "Unit used in user interfaces to display world/map sizes and distances",
      "enum": [
        "centimeters",
        "decimal-degrees",
        "decimeters",
        "feet",
        "inches",
        "kilometers",
        "meters",
        "miles",
        "millimeters",
        "nautical-miles",
        "yards"
      ]
    },
    "numClasses": {
      "type": "integer",
      "description": "Number of classes to be associated with the relationship. Used for Relationship renderer.",
      "minimum": 2,
      "maximum": 4
    },
    "standardDeviationInterval": {
      "type": "number",
      "description": "Use this property if the classificationMethod is `esriClassifyStandardDeviation`.",
      "enum": [
        0.25,
        0.33,
        0.5,
        1
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "classedColor",
        "classedSize",
        "predominance",
        "relationship",
        "univariateColorSize"
      ]
    },
    "visualVariables": {
      "type": "array",
      "description": "An array of visualVariable objects containing additional information needed when authoring the renderer.",
      "items": {
        "type": "object",
        "$ref": "authoringInfo_visualVariable_schema.json"
      }
    }
  },
  "additionalProperties": false,
  "esriDocumentation": {
    "additionalInformation": "The authoringInfo object is not required with a renderer. It is only used if rendering was generated using the Scene Viewer rendering tools. All snippets provided below show a portion of what is contained within `authoringInfo`. Please refer to the sample snippets in the [authoringInfo visual variable](authoringInfo_visualVariable.md) object for additional help.",
    "examples": [
      {
        "title": "Classed Size Renderer (Option 1)",
        "code": {
          "authoringInfo": {
            "type": "classedSize",
            "classificationMethod": "esriClassifyNaturalBreaks"
          }
        }
      },
      {
        "title": "Classed Size Renderer (Option 2)",
        "code": {
          "authoringInfo": {
            "type": "classedSize",
            "classificationMethod": "esriClassifyStandardDeviation",
            "standardDeviationInterval": 0.5
          }
        }
      },
      {
        "title": "Classed Color Renderer (Option 1)",
        "code": {
          "authoringInfo": {
            "type": "classedColor",
            "classificationMethod": "esriClassifyNaturalBreaks"
          }
        }
      },
      {
        "title": "Classed Color Renderer (Option 2)",
        "code": {
          "authoringInfo": {
            "type": "classedColor",
            "classificationMethod": "esriClassifyStandardDeviation",
            "standardDeviationInterval": 0.5
          }
        }
      },
      {
        "title": "Predominance Renderer",
        "code": {
          "authoringInfo": {
            "type": "predominance",
            "fields": [
              "COST",
              "DOLLARS",
              "PRICE"
            ]
          }
        }
      },
      {
        "title": "Univariate Color Size Renderer",
        "code": {
          "authoringInfo": {
            "type": "univariateColorSize",
            "visualVariables": [
              {
                "type": "sizeInfo",
                "minSliderValue": 1,
                "maxSliderValue": 1000
              },
              {
                "type": "colorInfo",
                "minSliderValue": 1,
                "maxSliderValue": 1000,
                "theme": "high-to-low"
              }
            ]
          }
        }
      },
      {
        "title": "Relationship Renderer",
        "code": {
          "authoringInfo": {
            "classificationMethod": "esriClassifyQuantile",
            "field1": {
              "field": "VOTE_TURNOUT",
              "classBreakInfos": [
                {
                  "minValue": 1.0844,
                  "maxValue": 54.0946
                },
                {
                  "minValue": 54.0946,
                  "maxValue": 4083.8235
                }
              ]
            },
            "field2": {
              "field": "MP06026a_B",
              "normalizationField": "TOTPOP_CY",
              "classBreakInfos": [
                {
                  "minValue": 0.101322,
                  "maxValue": 0.197619
                },
                {
                  "minValue": 0.197619,
                  "maxValue": 0.266094
                }
              ]
            },
            "focus": "HH",
            "numClasses": 2,
            "type": "relationship"
          }
        }
      }
    ]
  }
}
