-
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
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
string
Variable label
array
an array of grouping variables and associated metadata
default: none
string
Variable name
string
Variable label
boolean
controls initial display of box plots
default: "true"
boolean
controls initial display of violin plots
default: none
array
an array of strings that identify missing values in both the measure and result variables
default: ["", "NA", "N/A"]
boolean
controls display of visits without data for the current measure
default: none
boolean
controls display of unscheduled visits
default: none
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 sections below describe 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
}