-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
The most straightforward way to customize the Safety Results Over Time is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the Safety Results Over Time is a Webcharts chart
object, many default Webcharts settings are set in the defaultSettings.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 Safety Results Over Time 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 safety-results-over-time setting as of version 2.3.1.
string
name of variable that captures unique identifier of participant
default: "USUBJID"
object
visit metadata
string
name of variable that captures visit name
default: "VISIT"
string
Visit variable label
default: "Visit"
string
name of variable that captures visit order
default: "VISITNUM"
array
Visit order
default: none
boolean
Rotate tick labels 45 degrees?
default: true
number
Rotated tick label spacing
default: 100
string
name of variable that captures measure name
default: "TEST"
string
name of variable that captures measure unit
default: "STRESU"
string
name of variable that captures measure result
default: "STRESN"
string
name of variable that captures LLN of measure
default: "STNRLO"
string
name of variable that captures ULN of measure
default: "STNRHI"
string
value of measure to display initially
default: none
array
an array of filter variables and associated metadata
default: none
string
Variable name
default: none
string
Variable label
default: none
array
an array of grouping variables and associated metadata
default: none
string
Variable name
default: none
string
Variable label
default: none
string
grouping variable; defaults to first item in groups
setting; set to 'srot_none'
to display chart without grouping on initialization
default: none
boolean
controls initial display of box plots
default: true
boolean
controls initial display of outliers outside the 5th and 95th percentiles
default: true
boolean
controls initial display of violin plots
default: false
array
an array of strings that identify missing values in both the measure and result variables
default: none
boolean
controls display of visits without data for the current measure
default: false
boolean
controls display of unscheduled visits
default: false
string
a regular expression that identifies unscheduled visits
default: "/unscheduled|early termination/i"
array
an array of strings that identify unscheduled visits; overrides unscheduled_visit_pattern
default: none
The object below contains Webcharts settings as of version 2.3.1 of the Safety Results Over Time.
{
"x": {
"column": null,
"type": "ordinal",
"label": null,
"behavior": "flex",
"sort": "alphabetical-ascending",
"tickAttr": null
},
"y": {
"column": null,
"type": "linear",
"label": null,
"behavior": "flex",
"stat": "mean",
"format": null
},
"marks": [
{
"type": "line",
"per": null,
"attributes": {
"stroke-width": 2,
"stroke-opacity": 1,
"display": "none"
}
},
{
"type": "circle",
"per": null,
"attributes": {
"stroke": "black",
"stroke-opacity": 0,
"fill-opacity": 0
},
"values": {
"srot_outlier": [
true
]
},
"radius": null,
"tooltip": null,
"hidden": true
},
{
"type": "circle",
"per": null,
"attributes": {
"stroke": "black",
"stroke-opacity": 1,
"fill-opacity": 1
},
"values": {
"srot_outlier": [
true
]
},
"radius": 1.75,
"tooltip": null,
"hidden": false
}
],
"legend": {
"mark": "square"
},
"color_by": null,
"resizable": true,
"gridlines": "y",
"aspect": 3
}