{
    "title": "InputData",
    "type": "object",
    "properties": {
        "title": {
            "title": "Title",
            "type": "string",
            "order": 1
        },
        "subTitle": {
            "title": "Subtitle",
            "type": "string",
            "order": 2
        },
        "axis": {
            "title": "Axis Settings",
            "type": "object",
            "order": 3,
            "properties": {
                "xAxisLabel": {
                    "title": "X-Axis Label",
                    "type": "string",
                    "dataDrivenDisabled": false,
                    "order": 3
                },
                "yAxisLabel": {
                    "title": "Y-Axis Label",
                    "type": "string",
                    "dataDrivenDisabled": false,
                    "order": 4
                },
                "horizontal": {
                    "title": "Horizontal Bars",
                    "type": "boolean",
                    "dataDrivenDisabled": true,
                    "order": 5
                },
                "columnLayout": {
                    "title": "Vertical Chart Layout",
                    "description": "When multiple charts are drawn, then they will be layed out horizontically or vertically.",
                    "type": "boolean",
                    "dataDrivenDisabled": true,
                    "order": 6
                }
            }
        },
        "dataseries": {
            "title": "Dataseries",
            "type": "array",
            "dataDrivenDisabled": true,
            "order": 4,
            "items": {
                "type": "object",
                "properties": {
                    "label": {
                        "title": "Label",
                        "description": "The name for this data series",
                        "type": "string",
                        "required": true,
                        "order": 1
                    },
                    "backgroundColor": {
                        "title": "Bar Color",
                        "description": "The inner color of the bars.",
                        "type": "color",
                        "color": true,
                        "order": 2
                    },
                    "borderColor": {
                        "title": "Border Color",
                        "description": "The border color of the bars.",
                        "type": "color",
                        "color": true,
                        "order": 3
                    },
                    "styling": {
                        "title": "Styling",
                        "description": "",
                        "type": "object",
                        "order": 5,
                        "properties": {
                            "borderWidth": {
                                "title": "Border Width",
                                "type": "number",
                                "dataDrivenDisabled": true,
                                "order": 7
                            },
                            "borderRadius": {
                                "title": "Bar Corner Radius",
                                "description": "Number in pixels for a rounding effect on the bars.",
                                "type": "number",
                                "dataDrivenDisabled": true,
                                "order": 8
                            },
                            "barThickness": {
                                "title": "Bar Thickness",
                                "description": "The Thickness of the bar in pixels",
                                "type": "number",
                                "order": 4
                            }
                        }
                    },
                    "advanced": {
                        "title": "Advanced Settings",
                        "description": "",
                        "type": "object",
                        "order": 6,
                        "properties": {
                            "chartName": {
                                "title": "Chart",
                                "description": "If two dataseries have the same 'Chart' name, they will be drawn in the same chart. Otherwise they will get their own chart. If the name contains #split# as substring then a separat chart will be drawn for each split dataseries.",
                                "type": "string",
                                "dataDrivenDisabled": true,
                                "order": 2
                            },
                            "stack": {
                                "title": "Stack",
                                "description": "To stack series on top of each other within one chart, give them the same stack name.",
                                "type": "string",
                                "dataDrivenDisabled": true,
                                "order": 3
                            }
                        }
                    },
                    "data": {
                        "title": "Data",
                        "description": "The data used to draw this data series.",
                        "type": "array",
                        "order": 4,
                        "items": {
                            "type": "object",
                            "properties": {
                                "x": {
                                    "title": "X-Value",
                                    "type": "string",
                                    "required": true,
                                    "order": 1
                                },
                                "y": {
                                    "title": "Y-Value",
                                    "type": "string",
                                    "required": true,
                                    "order": 2
                                },
                                "pivot": {
                                    "title": "Split Data by",
                                    "description": "You can specify a column in the input data to autogenerate dataseries for each distinct entry in this column. E.g. if you have a table with columns [city, timestamp, temperature] and specify 'city' as split column, then you will get a dataseries for each city.",
                                    "type": "string",
                                    "order": 3
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
