These multi-select controls are used to select the visits that are displayed in the chart. The default visits are set to the first/last visit in the data set, but the default value can be adjusted to any visit upon the project team's request. Users can interactively select any single visit, or shift-click to select multiple visits. Selecting a visit will update the delta-delta chart accordingly. When multiple visits are selected, all participant measures from those visits are averaged.
These controls are used to select the measures that are displayed in the chart. The default measures are set to the first and second measure found in the data set, but the default value can be adjusted to any measure upon the project team's request. Users can interactively select any measure, which updates the delta-delta chart accordingly.
The chart can be configured to have any number of data filters. Each specified filter has a drop-down menu that is used to filter the visit data that is displayed in the chart.
Displayed under the controls, this statement provides the total number of participants in the data set in integers as well as the percentage of participants shown to one decimal place. When filters are used, the data shown in the histogram is manipulated and the number of participant records shown at the top of the page may increase or decrease, depending on the variable selected.
By moving a mouse cursor over a point in the chart, users can display exact x- and y-values for the chosen point along with the ID for the selected participant.
Clicking on a point in the chart will open a table beside the chart that contains a detailed listing of all participant lab data. Each row of the table has summary data for a single measure for the selected participant, and includes, the measure name, a sparkline showing the measure's value over time, and an annotated numeric value summarizing the change in the measure between the selected time points. This linked table contains a standard set of default columns that appear consistently across all filters. When a point is clicked it is highlighted and the table header shows the participant ID and any other specified participant details.
The Safety Delta-Delta plot accepts JSON data of the format returned by d3.csv()
. The renderer visualizes clinical medical signs data with one row per measurement plus the required variables specified below.
one record per measurement
required and optional variables:
Setting | Default | Data Type | Description | Required? |
---|---|---|---|---|
measure_col |
TEST | character | a variable that contains the names of each medical sign | Yes |
value_col |
STRESN | numeric | a variable that contains the results for each medical sign; non-numeric results are removed with a notification thrown to the log | Yes |
id_col |
USUBJID | character | a variable that contains IDs for each participant | Yes |
visit_col |
VISIT | character | a variable that contains the categorical visit where the measure was collected | Yes |
visitn_col |
VISITN | character | a variable that contains the numeric visit where the measure was collected | Yes |
filters[] |
either | an array of variables and metadata that will appear in the controls as data filters | ||
details[] |
either | an array of variables and metadata that will appear in the data listing |
a factory to create a custom Webcharts chart object
returns: chart
Param | Type | Description |
---|---|---|
element | string |
CSS selector identifying the element in which to create the chart |
settings | object |
settings object specifying options for how the chart is to appear and behave. Options defined here overwrite default values; see Configuration |
The most straightforward way to customize the Safety Delta-Delta plot is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the Safety Histogram is a Webcharts chart
object, many default Webcharts settings are set in the webchartsSettings.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 Delta-Delta 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-delta-delta setting as of version 1.0.0.
string
a variable that contains the names of each medical sign
default: "TEST"
string
a variable that contains the results for each medical sign; non-numeric results are removed with a notification thrown to the log
default: "STRESN"
string
a variable that contains IDs for each participant
default: "USUBJID"
string
a variable that contains the categorical visit where the measure was collected
default: "VISIT"
string
a variable that contains the numeric visit where the measure was collected
default: "VISITN"
object
Measures to be used in delta-delta scatter plot. Must be a value of the settings.measure_value
column
string
Measure to be shown on the x-axis of the delta-delta plot
default: none
string
Measure to be shown on the y-axis of the delta-delta plot
default: none
boolean
Indicates whether a regression line should be drawn on the delta-delta scatter plot
default: false
object
string
Measure to be shown on the x-axis of the delta-delta plot
default: none
string
Measure to be shown on the y-axis of the delta-delta plot
default: none
array
an array of variables and metadata that will appear in the controls as data filters
default: none
string
a description of the variable
default: none
string
the name of the variable
default: none
array
an array of variables and metadata that will appear in the data listing
default: none
string
a description of the variable
default: none
string
the name of the variable
default: none
The object below contains Webcharts settings that define the safety-histogram chart as of version 1.0.0 of the Safety Delta Delta.
{
"x": {
"column": null,
"type": "linear",
"label": "x delta",
"format": "0.2f"
},
"y": {
"column": null,
"type": "linear",
"label": "y delta",
"behavior": "flex",
"format": "0.2f"
},
"marks": [
{
"type": "circle",
"per": null,
"radius": 4,
"attributes": {
"stroke-width": 0.5,
"fill-opacity": 0.8
},
"tooltip": "Subject ID: [key]\nX Delta: [delta_x_rounded]\nY Delta: [delta_y_rounded]"
}
],
"gridlines": "xy",
"resizable": false,
"margin": {
"right": 25,
"top": 25
},
"aspect": 1,
"width": 400
}
Not Found |
---|