-
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.2.0.
string
unique identifier variable name
default: "USUBJID"
object
visit metadata
string
undefined
default: "VISIT"
string
undefined
default: "Visit"
string
undefined
default: "VISITNUM"
array
undefined
default: none
boolean
undefined
default: true
number
undefined
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
undefined
default: none
string
undefined
default: none
array
an array of grouping variables and associated metadata
default: none
string
undefined
default: none
string
undefined
default: none
boolean
controls initial display of box plots
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 each Webcharts setting as of version 2.2.0.
{
x: {
column: null, // set in syncSettings()
type: 'ordinal',
label: null,
behavior: 'flex',
sort: 'alphabetical-ascending',
tickAttr: null
},
y: {
column: null, // set in syncSettings()
type: 'linear',
label: null,
behavior: 'flex',
stat: 'mean',
format: '0.2f'
},
marks: [
{
type: 'line',
per: null, // set in syncSettings()
attributes: {
'stroke-width': 2,
'stroke-opacity': 1,
display: 'none'
}
}
],
legend: {
mark: 'square'
},
color_by: null, // set in syncSettings()
resizable: true,
gridlines: 'y',
aspect: 3
}