{ "title": "Bar chart", "additionalProperties": false, "properties": { "orientation": { "enum": [ "vertical", "horizontal" ] }, "unit": { "type": "string", "maxLength": 12 }, "axis": { "type": "string", "maxLength": 40 }, "focal": { "type": [ "string", "array" ] }, "data": { "anyOf": [ { "type": "string" }, { "type": "array", "minItems": 1, "items": { "anyOf": [ { "type": "array", "minItems": 2, "maxItems": 2, "items": [ { "type": "string" }, { "type": "number" } ] }, { "type": "object", "required": [ "label" ], "additionalProperties": false, "properties": { "label": { "type": "string", "maxLength": 32 }, "value": { "type": "number" }, "focal": { "type": "boolean" }, "a": { "type": "number" }, "b": { "type": "number" } } }, { "type": "array", "minItems": 3, "maxItems": 3, "items": [ { "type": "string" }, { "type": "number" }, { "type": "number" } ] } ] } } ] }, "categories": { "type": "array", "items": { "type": "string" } }, "series": { "type": "array", "maxItems": 5, "items": { "type": "object", "required": [ "name", "values" ], "additionalProperties": false, "properties": { "name": { "type": "string", "maxLength": 24 }, "values": { "type": "array", "items": { "type": "number" } }, "focal": { "type": "boolean" } } } }, "sort": { "enum": [ "none", "asc", "desc" ] }, "x": { "type": "string" }, "y": { "type": "string" }, "from": { "type": "string", "maxLength": 20 }, "to": { "type": "string", "maxLength": 20 }, "zero": { "type": "boolean" }, "columns": { "type": "array", "items": { "type": "object", "required": [ "label", "segments" ], "additionalProperties": false, "properties": { "label": { "type": "string", "maxLength": 24 }, "segments": { "type": "array", "items": { "anyOf": [ { "type": "array", "minItems": 2, "maxItems": 2, "items": [ { "type": "string" }, { "type": "number" } ] }, { "type": "object", "required": [ "name", "value" ], "properties": { "name": { "type": "string" }, "value": { "type": "number" }, "focal": { "type": "boolean" } } } ] } } } } } } }