NumberRange

Specifies the minimum and maximum values of a number colormap.

Values outside this range will use the color at the ends of the gradient. The variant used should match the type of the number array.

min: double, integer, date, or date-time
Minimum value of the range. The type should match the associated number array type.
max: double, integer, date, or date-time
Maximum value of the range. Must have the same type as min.

Schema

{
  "anyOf": [
    {
      "type": "object",
      "required": [
        "max",
        "min"
      ],
      "properties": {
        "max": {
          "type": "number",
          "format": "double"
        },
        "min": {
          "type": "number",
          "format": "double"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "max",
        "min"
      ],
      "properties": {
        "max": {
          "type": "integer",
          "format": "int64"
        },
        "min": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "max",
        "min"
      ],
      "properties": {
        "max": {
          "type": "string",
          "format": "date"
        },
        "min": {
          "type": "string",
          "format": "date"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "max",
        "min"
      ],
      "properties": {
        "max": {
          "type": "string",
          "format": "date-time"
        },
        "min": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  ]
}