{
  "title": "TransparencyInfo Visual Variable",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "The transparencyInfo visual variable defines the transparency, or opacity, of each feature's symbol based on a numeric attribute field value.",
  "properties": {
    "field": {
      "type": "string",
      "description": "Attribute field used for setting the transparency of a feature if no `valueExpression` is provided."
    },
    "legendOptions": {
      "type": "object",
      "allOf": [
        {
          "$ref": "visualVariableLegendOptions_schema.json"
        },
        {
          "properties": {
            "title": {},
            "showLegend": {}
          },
          "additionalProperties": false
        }
      ]
    },
    "normalizationField": {
      "type": "string",
      "description": "Attribute field used to normalize the data."
    },
    "stops": {
      "type": "array",
      "description": "An array of transparencyStop objects.",
      "items": {
        "type": "object",
        "$ref": "transparencyStop_schema.json"
      }
    },
    "type": {
      "type": "string",
      "description": "Specifies the type of visual variable.",
      "enum": [
        "transparencyInfo"
      ]
    },
    "valueExpression": {
      "type": "string",
      "description": "An [Arcade expression](https://developers.arcgis.com/arcade/) evaluating to a number."
    },
    "valueExpressionTitle": {
      "type": "string",
      "description": "The title identifying and describing the associated [Arcade](https://developers.arcgis.com/arcade/) expression as defined in the `valueExpression` property."
    }
  },
  "required": [
    "type"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "transparencyInfo",
        "description": "Live sample web scene showing [use of the transparencyInfo visual variable](https://www.arcgis.com/home/webscene/viewer.html?webscene=593dc1e98a1d447fb09b09d486355ef0).",
        "code": {
          "visualVariables": [
            {
              "type": "transparencyInfo",
              "field": "strength",
              "stops": [
                {
                  "value": 21,
                  "transparency": 60
                },
                {
                  "value": 39,
                  "transparency": 10
                }
              ]
            }
          ]
        }
      }
    ]
  }
}
