-
Notifications
You must be signed in to change notification settings - Fork 1
API
library namespace
- function:
rbmViz.default.scatterPlot
-
{(Node|string)}_element_- DOM element or ID in which to render chart -
{Array}_results_- analysis results data with one object per group ID -
{Object}_config_- chart configuration and metadata -
{Array}_bounds_- optional auxiliary data of predicted analysis output -
{Array}_groupMetadata_- optional group metadata
Configuration of the scatter plot is generally data-driven by the
metric metadata. The workflow metadata object is also the
configuration object for the chart. Customize the chart by modifying the configuration object.
-
x- the name of the variable to be plotted on the x-axis
- default:
'denominator'
-
xType- the type of the variable to be plotted on the x-axis
- default:
'logarithmic'
-
xLabel- a short description of the x-axis variable
- default:
config[ config.x ]
-
y- the name of the variable to be plotted on the y-axis
- default:
'numerator'
-
yType- the type of the variable to be plotted on the y-axis
- default:
'linear'
-
yLabel- a short description of the y-axis variable
- default:
config[ config.y ]
-
color- the name of the variable by which to color the points
- default:
'flag'
-
selectedGroupIDs- an array of group IDs that will be highlighted in the chart
- default:
[]
-
clickCallback- a callback function that runs whenever a click event occurs on a given graphical element
- default:
(datum) => {}
-
hoverCallback- a callback function that runs whenever a mouseover event occurs on a given graphical element
- default:
(datum) => {}
-
maintainAspectRatio- a boolean that controls whether the chart fits its parent (
true) or maintains its aspect ratio (false) - default:
false
- a boolean that controls whether the chart fits its parent (
- function:
rbmViz.default.barChart
-
{(Node|string)}_element_- DOM element or ID in which to render chart -
{Array}_results_- analysis results data with one object per group ID -
{Object}_config_- chart configuration and metadata -
{Array}_thresholds_- optional threshold annotation values -
{Array}_groupMetadata_- optional group metadata
Configuration of the bar chart is generally data-driven by
metric metadata. The workflow metadata object is also the
configuration object for the chart. Customize the chart by modifying the configuration object.
-
x- the name of the variable to be plotted on the x-axis
- default:
'groupid'
-
xType- the type of the variable to be plotted on the x-axis
- default:
'logarithmic'
-
xLabel- a short description of the x-axis variable
- default:
config[ config.x ]
-
y- the name of the variable to be plotted on the y-axis
- default:
'score'
-
yLabel- a short description of the y-axis variable
- default:
config[ config.y ]
-
yType- the type of the variable to be plotted on the y-axis
- default:
'linear'
-
color- the name of the variable by which to color the bars
- default:
'flag'
-
colorLabel- a short description of the color variable
- default:
''
-
clickCallback- a callback function that runs whenever a click event occurs on a given graphical element
- default:
(datum) => {}
-
hoverCallback- a callback function that runs whenever a mouseover event occurs on a given graphical element
- default:
(datum) => {}
-
selectedGroupIDs- an array of group IDs that will be highlighted in the chart
- default:
[]
-
thresholds- an array of thresholds (applies only when y-variable is metric score)
- default: [ { threshold: -7, flag: -2 }, { threshold: -5, flag: -1 }, { threshold: 5, flag: 1 }, { threshold: 7, flag: 2 }, ];
-
maintainAspectRatio- a boolean that controls whether the chart fits its parent (
true) or maintains its aspect ratio (false) - default:
false
- a boolean that controls whether the chart fits its parent (
- function:
rbmViz.default.sparkline
-
{(Node|string)}_element_canvasnode or a unique HTMLid -
{Array}_results_results for a single metric; see metric results data specification -
{Object}_config_Metric metadata and chart configuration; see metric metadata specification -
{Array}_thresholds_Metric threshold parameters; see metric parameters data specification
Configuration of the sparkline is generally data-driven by
metric metadata. The workflow metadata object is also the
configuration object for all sparklines except for that of flag counts by group. Customize the chart
by modifying the configuration object.
-
x:- the name of the variable to be plotted on the x-axis
- default:
'snapshot_date'
-
y:- the name of the variable to be plotted on the y-axis
- default:
'score'
-
color:- the name of the variable with which to color the points
- default:
'flag'
-
nSnapshots- the number of dates to plot
- default:
5
- function:
rbmViz.default.timeSeries
-
{(Node|string)}_element_canvasnode or a unique HTMLid -
{Array}_results_results for a single metric; see metric results data specification -
{Object}_config_Metric metadata and chart configuration; see metric metadata specification -
{Array}_thresholds_Metric threshold parameters; see metric parameters data specification -
{Array}_intervals_additional metric analysis output; see additional metric analysis output data specification -
{Array}_groupMetadata_- optional group metadata
Configuration of the time series is generally data-driven by
metric metadata. The workflow metadata object is also the
configuration object for the chart. Customize the chart by modifying the configuration object:
-
y- the name of the variable to be plotted on the y-axis
- default:
'score'
-
yLabel- a short description of the y-axis variable
- default:
config[ config.y ]
-
selectedGroupIDs- an array of group IDs that will be highlighted in the chart
- default:
[]
-
maintainAspectRatio- a boolean that controls whether the chart fits its parent (
true) or maintains its aspect ratio (false) - default:
false
- a boolean that controls whether the chart fits its parent (
-
x- the name of the variable to be plotted on the x-axis
- default:
'groupid'
-
xLabel- a short description of the x-axis variable
- default:
config[ config.x ]
-
thresholds- an array of thresholds (applies only when y-variable is metric score)
- default: [ { threshold: -7, flag: -2 }, { threshold: -5, flag: -1 }, { threshold: 5, flag: 1 }, { threshold: 7, flag: 2 }, ];
-
aggregateLabel- the legend label, either study or selected country
- default:
'Study'
- function:
rbmViz.default.groupOverview
-
{(Node|string)}_element_- DOM element or ID in which to render chart -
{Array}_results_- analysis results data with one object per group ID per metric ID -
{Object}_config_- table configuration and metadata -
{Array}_groupMetadata_- optional group metadata -
{Array}_metricMetadata_- optional metric metadata
-
GroupLevel- the level of the group to be displayed, either
'Site'or'Country' - default:
'Site'
- the level of the group to be displayed, either
-
groupLabelKey- the key in the group metadata object that contains the group label
- default:
null
-
groupParticipantCountKey- the key in the group metadata object that contains the participant count
- default:
'ParticipantCount'
-
groupClickCallback- a callback function that runs whenever a click event occurs in the group column; returned value
is structured as
{ GroupLevel, GroupID, data }, wheredatacontains group metadata - default:
(datum) => {}
- a callback function that runs whenever a click event occurs in the group column; returned value
is structured as
-
metricClickCallback- a callback function that runs whenever a click event occurs in a metric column; returned value
is structured as
{ GroupLevel, GroupID, MetricID, data }, wheredatacontains metric results - default:
(datum) => {}
- a callback function that runs whenever a click event occurs in a metric column; returned value
is structured as