-
Notifications
You must be signed in to change notification settings - Fork 0
Forms Configuration
The most straightforward way to customize forms chart is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the forms chart is a Webcharts chart
object, many default Webcharts settings are set in the webchartsSettings.js file as described below. Refer to the Webcharts documentation for more details on these settings.
In addition to the standard Webcharts settings several custom settings not available in the base Webcharts library have been added to the forms chart to facilitate data mapping and other custom functionality. These custom settings are described in detail below. All defaults can be overwritten by users.
The sections below describe each forms setting as of version 0.1.0.
string
variable: site
default: "site"
string
variable: form status
default: "status"
string
variable: form status order
default: "status_order"
string
variable: form status color
default: "status_color"
The object below contains each Webcharts setting as of version 0.1.0.
{
"x": {
"column": null,
"type": "ordinal",
"label": ""
},
"y": {
"type": "linear",
"behavior": "firstfilter",
"format": "1d"
},
"marks": [
{
"arrange": "stacked",
"split": null,
"type": "bar",
"per": [],
"summarizeY": "percent",
"tooltip": "$y"
}
],
"color_by": null,
"color_dom": null,
"colors": null,
"legend": {
"label": "",
"order": null
},
"resizable": false,
"width": 500,
"height": 350,
"margin": {
"left": 50
}
}
Accrual
Accrual over Time
Accrual over Time (derived)
Visit Completion
Queries
Forms