-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
The most straightforward way to customize a Safety Shift Plot is by using a configuration object whose properties describe the chart's behavior and appearance. Since the Safety Shift Plot 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 Shift Plot 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-shift-plot setting as of version 2.1.0.
string
unique identifier variable name
default: "USUBJID"
string
visit variable name
default: "VISIT"
string
measure variable name
default: "TEST"
string
measure unit variable name
default: "STRESU"
string
result variable name
default: "STRESN"
string
value of measure to display initially
default: none
object
an object that defines the baseline value
array
Baseline Visits
default: none
string
Baseline Statistic
default: "mean"
object
an object that defines the comparison (or post-baseline) value
array
Comparison Visits
default: none
string
Comparison Statistic
default: "mean"
array
an array of filter variables and associated metadata
default: none
string
Variable Name
default: none
string
Variable Label
default: none
The object below contains each Webcharts setting as of version 2.1.0.
{
x: {
column: 'shiftx',
type: 'linear',
label: 'Baseline Value',
format: '0.2f'
},
y: {
column: 'shifty',
type: 'linear',
label: 'Comparison Value',
behavior: 'flex',
format: '0.2f'
},
marks: [
{
type: 'circle',
per: ['key'],
radius: 4,
attributes: {
'stroke-width': 0.5,
'fill-opacity': 0.8
},
tooltip:
'Subject ID: [key]\nBaseline: [shiftx]\nComparison: [shifty]\nChange: [chg]\nPercent Change: [pchg]'
}
],
gridlines: 'xy',
resizable: false,
margin: { right: 25, top: 25 },
aspect: 1
}