{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "dashboard-number-descriptor.schema.json", "title": "DashboardNumberDescriptor", "description": "Configuration for a number/KPI visualization", "type": "object", "properties": { "aggregation": { "$ref": "dashboard-aggregation-type.schema.json" }, "aggregationProperty": { "type": "string", "description": "Property name for sum/average/min/max aggregations" }, "format": { "type": "string", "enum": ["number", "currency", "percentage"], "default": "number" }, "color": { "type": "string", "description": "Display color name (blue, green, red, purple, orange, indigo, amber, teal)" }, "useBackgroundColor": { "type": "boolean", "default": false }, "conditionalColors": { "type": "array", "items": { "type": "object", "properties": { "operator": { "type": "string", "enum": ["greaterThan", "lessThan", "equals", "between"] }, "value": { "type": "number" }, "valueTo": { "type": "number" }, "color": { "type": "string" } }, "required": ["operator", "value", "color"], "additionalProperties": false } } }, "required": ["aggregation"], "additionalProperties": false }