{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "DonutChartSettings",
    "description": "The data contained in a DonutChart settings object",
    "type": "object",
    "properties": {
        "title": {
            "type": "string"
        },
        "description": {
            "type": "string"
        },
        "innerRadius": {
            "type": "string",
            "pattern": "^[0-9]{1,3}%$"
        },
        "labels": {
            "type": "object",
            "properties": {
                "labelsEnabled": {
                    "type": "boolean"
                },
                "labelRadius": {
                    "type": "number",
                    "minimum": 0
                },
                "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                }
            }
        },
        "legend": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean"
                },
                "position": {
                    "enum": [
                        "top",
                        "right",
                        "bottom",
                        "left"
                    ]
                },
                "maxColumns": {
                    "type": "integer",
                    "minimum": 0
                },
                "markerType": {
                    "enum": [
                        "circle",
                        "square",
                        "line",
                        "triangleUp",
                        "triangleDown",
                        "triangleLeft",
                        "triangleRight",
                        "diamond",
                        "bubble"
                    ]
                },
                "switchable": {
                    "type": "boolean"
                },
                "color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                }
            }
        },
        "style": {
            "type": "object",
            "properties": {
                "backgroundColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "borderColor": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "borderAlpha": {
                    "type": "number",
                    "minimum": 0
                },
                "animationDuration": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        }
    }
}