{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "MapChartData",
    "description": "The data contained in a MapChart",
    "type": "object",
    "properties": {
        "datasets": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "marker": {
                        "enum": [
                            "standard",
                            "custom",
                            "flag",
                            "plane",
                            "bus"
                        ]
                    },
                    "color": {
                        "type": "string",
                        "pattern": "^#[0-9a-fA-F]{6}$"
                    },
                    "values": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "x": {
                                    "type": "number"
                                },
                                "y": {
                                    "type": "number"
                                },
                                "id": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "x",
                                "y"
                            ]
                        }
                    }
                },
                "required": [
                    "values"
                ]
            }
        }
    }
}