-
Notifications
You must be signed in to change notification settings - Fork 3
Configuration
The most straightforward way to customize the Safety Outlier Explorer is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the Safety Outlier Explorer 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 Outlier Explorer 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-outlier-explorer setting as of version 2.3.0.
string
unique identifier variable name
default: "USUBJID"
array
visit metadata
default:
[
{
"type": "ordinal",
"value_col": "VISIT",
"label": "Visit",
"order_col": "VISITNUM",
"order": null,
"rotate_tick_labels": true,
"vertical_space": 100
},
{
"type": "linear",
"value_col": "DY",
"label": "Study Day",
"order_col": "DY",
"order": null,
"rotate_tick_labels": false,
"vertical_space": 0
}
]
string
Visit variable data type
default: "ordinal"
string
Visit variable name
default: "VISIT"
string
Visit variable label
default: "Visit"
string
Visit ordering variable name
default: "VISITNUM"
array
Visit order
default: none
boolean
Rotate tick labels 45 degrees?
default: true
number
Rotated tick label spacing
default: 100
string
measure variable name
default: "TEST"
string
measure unit variable name
default: "STRESU"
string
result variable name
default: "STRESN"
string
LLN variable name
default: "STNRLO"
string
ULN variable name
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 ID-level variables and associated metadata
default:
[
{
"value_col": "AGE",
"label": "Age"
},
{
"value_col": "SEX",
"label": "Sex"
},
{
"value_col": "RACE",
"label": "Race"
}
]
string
Variable name
default: "AGE"
string
Variable label
default: "Age"
object
added in v2.4. Takes an array of col/label objects and adds those values to the end of the standard point tooltips. The following would add Date to the tooltip: {tooltip_cols: [{label:"Date",value_col:"DT"}]};
default: null
object
width and height of small multiples
number
Width
default: 300
number
Height
default: 100
string
method for identifying the normal range
default: "LLN-ULN"
number
the number of standard deviations from the mean with which to define the normal range
default: 1.96
number
this quantile defines the lower bound of the normal range
default: 0.05
number
this quantile defines the upper bound of the normal range
default: 0.95
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
object
an object that defines the line color, thickness, and opacity
string
Line Color
default: "black"
number
Line Thickness
default: 0.5
number
Line Opacity
default: 0.75
object
an object that defines the point color, radius, and opacity and its outline color, thickness, and opacity
string
Point Outline Color
default: "rgb(102,194,165)"
number
Point Outline Thickness
default: 0.5
number
Point Outline Opacity
default: 1
string
Point Color
default: "rgb(102,194,165)"
number
Point Radius
default: 3
number
Point Opacity
default: 1
The object below contains each Webcharts setting as of version 2.3.0.
{
x: {
column: null, //set in syncSettings()
type: null, //set in syncSettings()
behavior: 'raw'
},
y: {
column: null, //set in syncSettings()
stat: 'mean',
type: 'linear',
label: 'Value',
behavior: 'raw',
format: '0.2f'
},
marks: [
{
per: null, //set in syncSettings()
type: 'line',
attributes: {
'clip-path': 'url(#1)'
},
tooltip: null //set in syncSettings()
},
{
per: null, //set in syncSettings()
type: 'circle',
attributes: {
'clip-path': 'url(#1)'
},
tooltip: null //set in syncSettings()
}
],
resizable: true,
margin: { right: 20 }, //create space for box plot
aspect: 3
}