{
    "title": "Visit Completion",
    "chart": "visitCompletion",
    "description": "JSON schema for the configuration of visit completion chart",
    "overview": "The most straightforward way to customize the visit completion chart is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the visit completion chart is a Webcharts `chart` object, many default Webcharts settings are set in the [webchartsSettings.js file](https://github.com/RhoInc/dashboard-charts/blob/master/src/visitCompletion/configuration/webchartsSettings.js) as [described below](#webcharts-settings). Refer to the [Webcharts documentation](https://github.com/RhoInc/Webcharts/wiki/Chart-Configuration) for more details on these settings.\nIn addition to the standard Webcharts settings several custom settings not available in the base Webcharts library have been added to the visit completion chart to facilitate data mapping and other custom functionality. These custom settings are described in detail below. All defaults can be overwritten by users.",
    "version": "0.1.0",
    "type": "object",
    "data-guidelines": "The Visit Completion chart accepts [JSON](https://en.wikipedia.org/wiki/JSON) data of the format returned by [`d3.csv()`](https://github.com/d3/d3-3.x-api-reference/blob/master/CSV.md). It plots the number of participants by vist and visit status.",
    "data-structure": "one record per participant per visit",
    "data-file": "dashboard-visit-completion",
    "properties": {
        "site_col": {
            "title": "Site",
            "description": "variable: site",
            "type": "string",
            "default": "site",
            "data-mapping": true,
            "data-type": "character",
            "required": true
        },
        "visit_col": {
            "title": "Visit",
            "description": "variable: visit",
            "type": "string",
            "default": "visit",
            "data-mapping": true,
            "data-type": "character",
            "required": true
        },
        "visit_order_col": {
            "title": "Visit Order",
            "description": "variable: visit order",
            "type": "string",
            "default": "visit_order",
            "data-mapping": true,
            "data-type": "numeric",
            "required": false
        },
        "status_col": {
            "title": "Visit Status",
            "description": "variable: visit status",
            "type": "string",
            "default": "status",
            "data-mapping": true,
            "data-type": "character",
            "required": true
        },
        "status_order_col": {
            "title": "Visit Status Order",
            "description": "variable: visit status order",
            "type": "string",
            "default": "status_order",
            "data-mapping": true,
            "data-type": "numeric",
            "required": false
        },
        "status_color_col": {
            "title": "Visit Status Color",
            "description": "variable: visit status color",
            "type": "string",
            "default": "status_color",
            "data-mapping": true,
            "data-type": "numeric",
            "required": false
        }
    }
}