1.11.8
(string)
: The data set key.
(number)
: The plot width.
(number)
: The plot height.
(number)
: The plot top margin.
(number)
: The plot left margin.
(number)
: The plot right margin.
(number)
: The plot bottom margin.
(function)
: Function that takes a data key string and returns a DataContainer.
(function)
: Function that takes a scale key string and returns a scale instance.
(function)
: Function that will be called upon click of plot.
Extends mixin
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(number)
: The value for the horizontal margin between bars. Default: 2
(string)
: A color for all bars. Optional. If provided, overrides using the x scale for colors.
(boolean)
: Whether or not to log-scale the y axis. Default: false
<BarPlot
data="exposures_single_data"
x="signature"
y="exposure"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Optional.
(number)
: The diameter of outlier (and mean) points. Default: 6
(boolean)
: Whether or not to draw outlier points on the plot. Default: true
<BoxPlot
data="boxplot_data"
y="exposure"
o="signature"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Used to filter observations.
(function)
: A function used to filter values to determine whether to count them.
(number)
: The value for the horizontal margin between bars. Default: 2
(string)
: A color for all bars. Optional. If provided, overrides using the x scale for colors.
(boolean)
: Whether or not to log-scale the y axis. Default: false
<CountBarPlot
data="exposures_data"
x="signature"
y="exposure"
o="sample_id"
:filterFunction="((val) => (val > 1))"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The key for the data containing the variable to stratify by.
(string)
: The key for the scale to stratify by. Must be categorical.
(string)
: The key for the data containing the secondary variable to stratify by.
(string)
: The key for the secondary scale to stratify by. Must be categorical.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Required in order to match with the stratification data.
(number)
: The diameter of outlier (and mean) points. Default: 6
(boolean)
: Whether or not to draw outlier points on the plot. Default: true
<DoubleStratifiedBoxPlot
data="boxplot_data"
variable="COSMIC 1"
s="stratification_data"
x="smoking_binary"
s2="stratification_data"
x2="sex"
y="exposure"
o="sample_id"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The key for the data containing the variable to stratify by.
(string)
: The x-scale variable key. Must be continuous.
(string)
: The key for the data containing the secondary variable to stratify by.
(string)
: The secondary x-scale variable key.
(string)
: The y-scale variable key. Must be continuous.
(string)
: The observation-scale variable key. Required in order to match with the stratification data.
(boolean)
: Whether or not to fill points. Default: false
(number)
: Default size for points. Default: 3
(string)
: Color for point outlines. Optional. Will override the x color scale if provided.
<DoubleStratifiedScatterPlot
data="exposures_data"
variable="COSMIC 1"
s="clinical_data"
x="age"
s2="clinical_data"
x2="sex"
y="cosmic_1_exposure"
o="sample_id"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The key for the data containing the variable to stratify by.
(string)
: The key for the scale to stratify by. Must be categorical.
(string)
: The key for the data containing the secondary variable to stratify by.
(string)
: The key for the secondary scale to stratify by. Must be categorical.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Required in order to match with the stratification data.
(number)
: The diameter of points. Default: 3
(number)
: A random seed. Optional.
(boolean)
: Whether to fill points. Default: true
(string)
: Color for point outlines. Optional. Will override the x color scale if provided.
<DoubleStratifiedSinaPlot
data="boxplot_data"
variable="COSMIC 1"
s="stratification_data"
x="smoking_binary"
s2="stratification_data"
x2="sex"
y="exposure"
o="sample_id"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The genome-scale variable key.
(string)
: The event color-scale variable key. Takes precedence over eventColor prop.
(string)
: The y-scale variable key.
(string)
: The axis chromosome variable key. Default: "chromosome"
(string)
: The axis position variable key. Default: "position"
(number)
: The width of each observation rectangle. Default: 4
(string)
: The color of each observation. Default: "#000000".
(string)
: The background color of the track. Optional.
(string)
: The background color of the track. Optional.
(number)
: The value for the vertical margin between bars. Default: 2
// TODO: bar padding
<GenomeMultiTrackPlot
data="rand_genome_multi_data"
g="genome"
y="sample_id"
c="event_type"
:pWidth="500"
:pHeight="40"
:pMarginTop="10"
:pMarginLeft="10"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:getStack="getStack"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The genome-scale variable key.
(string)
: The y-scale variable key.
(string)
: The color-scale variable key.
(string)
: The axis chromosome variable key. Default: "chromosome"
(string)
: The axis position variable key. Default: "position"
(boolean)
: Whether to have log scaled y. Default: false
<GenomeScatterPlot
data="rainfall_data"
g="genome"
y="mut_dist"
c="category"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The genome-scale variable key.
(string)
: The y-scale variable key.
(string)
: The color-scale variable key.
(string)
: The axis chromosome variable key. Default: "chromosome"
(string)
: The axis position variable key. Default: "position"
<GenomeStackedBarPlot
data="rainfall_data"
g="genome"
y="exposure"
c="signature"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The genome-scale variable key.
(string)
: The event color-scale variable key. Takes precedence over eventColor prop.
(string)
: The axis chromosome variable key. Default: "chromosome"
(string)
: The axis position variable key. Default: "position"
(number)
: The width of each observation rectangle. Default: 4
(string)
: The color of each observation. Default: "#000000".
(string)
: The background color of the track. Optional.
(string)
: The background color of the track. Optional.
<GenomeTrackPlot
data="rand_genome_data"
g="genome"
c="event_type"
:pWidth="500"
:pHeight="40"
:pMarginTop="10"
:pMarginLeft="10"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:getStack="getStack"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The hierarchy data container key (passed to getData).
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(string)
: The color-scale variable key.
(number)
: The value for the horizontal margin between bars. Default: 2
(number)
: The value for the vertical margin between bars. Default: 2
<HierarchicalMultiTrackPlot
data="exposures_data"
h="clustering"
x="sample_id"
y="signature"
c="exposure"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Optional.
(number)
: The diameter of outlier (and mean) points. Default: 6
(boolean)
: Whether or not to draw outlier points on the plot.
<MultiBoxPlot
data="exposures_data"
x="signature"
y="exposure"
o="sample_id"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: An array of data keys.
(string)
: An array of color-scale variable keys.
(string)
: The observation-scale variable key.
(string)
: The observation (observation-scale domain element of interest).
(number)
: The margin between each rect.
(number)
: The size of rects (only used if text values are enabled).
(boolean)
: Whether to disable the rendering of text for each value.
(boolean)
: Whether to disable tooltips. Default: false
<MultiDataRectPlot
:dataArray="['BRCA1', 'BRCA2', 'NTHL1']"
:cArray="['mut_class', 'mut_class', 'mut_class']"
z="sample_id"
o="SA12345"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: An array of data keys.
(string)
: An array of color-scale keys.
(number)
: The value for the horizontal margin between bars. Default: 2
(number)
: The value for the vertical margin between bars. Default: 2
<MultiDataTrackPlot
x="sample_id"
:dataArray="['gene_A', 'gene_B', 'gene_C']"
:cArray="['mut_class', 'mut_class', 'mut_class']"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(string)
: The color-scale variable key.
(number)
: The value for the horizontal margin between bars. Default: 2
(number)
: The value for the vertical margin between bars. Default: 2
<MultiTrackPlot
data="exposures_data"
x="sample_id"
y="signature"
c="exposure"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The color-scale variable key.
(string)
: The observation-scale variable key.
(string)
: The observation (observation-scale domain element of interest).
(boolean)
: Whether to disable tooltips. Default: false
<RectPlot
data="clinical_data"
z="sample_id"
o="SA12345"
c="age"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(string)
: The color-scale variable key. Takes precedence over pointColor prop.
(boolean)
: Whether or not to fill points. Default: false
(string)
: Default color for points. Default: "#4682B4"
(number)
: Default size for points. Default: 3
(boolean)
: Whether or not to log-scale the y axis. Default: false
(boolean)
: Whether or not to log-scale the x axis. Default: false
<ScatterPlot
data="xy_data"
x="x"
y="y"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: The y-scale variable key.
(string)
: The color-scale variable key.
(number)
: The value for the horizontal margin between bars. Default: 2
(boolean)
: Set to false to ignore the filtered domain of the x scale. Default: true
(boolean)
: Set to false to ignore the filtered domain of the y scale. Default: true
<StackedBarPlot
data="exposures_data"
x="sample_id"
y="exposure"
c="signature"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The key for the data containing the variable to stratify by.
(string)
: The key for the scale to stratify by. Must be categorical.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Required in order to match with the stratification data.
(number)
: The diameter of outlier (and mean) points. Default: 6
(boolean)
: Whether or not to draw outlier points on the plot. Default: true
<StratifiedBoxPlot
data="boxplot_data"
variable="COSMIC 1"
s="stratification_data"
y="exposure"
o="sample_id"
x="smoking_binary"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The survival "days to death" variable key. Default: "days_to_death"
(string)
: The survival "days to last followup" variable key. Default: "days_to_last_followup"
(string)
: The key for the data containing the variable to stratify by.
(string)
: The key for the variable to stratify by in the s dataset.
(string)
: The color-scale (line-scale) variable key. Should contain the categories of the stratified variable. Must be categorical.
(string)
: The x-scale variable key. Should represent survival time. Must be continuous.
(string)
: The y-scale variable key. Should represent survival percentage. Must be continuous.
(string)
: The observation-scale variable key. Required in order to match the survival data with the stratification data.
(number)
: The line width. Default: 2
(number)
: The tick height. Default: 8
<StratifiedKaplanMeierPlot
data="survival_data"
s="dominant_signature_data"
variable="dominant_signature"
c="signatures"
x="survival_time"
y="survival_pct"
o="sample_id"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The key for the data containing the variable to stratify by.
(string)
: The x-scale variable key. Must be continuous.
(string)
: The y-scale variable key. Must be continuous.
(string)
: The observation-scale variable key. Required in order to match with the stratification data.
(boolean)
: Whether or not to fill points. Default: false
(number)
: Default size for points. Default: 3
(string)
: Color for point outlines. Optional. Will override the x color scale if provided.
<StratifiedScatterPlot
data="exposures_data"
variable="COSMIC 1"
s="clinical_data"
y="cosmic_1_exposure"
o="sample_id"
x="age"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The key to access the values in the data array objects.
(string)
: The key for the data containing the variable to stratify by.
(string)
: The key for the scale to stratify by. Must be categorical.
(string)
: The y-scale variable key.
(string)
: The observation-scale variable key. Required in order to match with the stratification data.
(number)
: The diameter of points. Default: 3
(number)
: A random seed. Optional.
(boolean)
: Whether to fill points. Default: true
(string)
: Color for point outlines. Optional. Will override the x color scale if provided.
<StratifiedSinaPlot
data="boxplot_data"
variable="COSMIC 1"
s="stratification_data"
y="exposure"
o="sample_id"
x="smoking_binary"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
Extends mixin
(string)
: The x-scale variable key.
(string)
: The color-scale variable key.
(number)
: The value for the horizontal margin between bars. Default: 2
<TrackPlot
data="clinical_data"
x="sample_id"
c="age"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getData="getData"
:getScale="getScale"
:clickHandler="myClickHandler"
/>
(string)
: The axis variable key.
(string)
: The side for the scale.
(number)
: An angle used to rotate axis tick text.
(number)
: The plot width.
(number)
: The plot height.
(number)
: The plot top margin.
(number)
: The plot left margin.
(number)
: The plot right margin.
(number)
: The plot bottom margin.
(function)
: Function that takes a scale key string and returns a scale instance.
(function)
: Function that returns a HistoryStack instance.
(boolean)
: Whether to disable brushing functionality and hide the zoomed-out "context" view. Default: false
(boolean)
: Whether to have log scaled variable. Default: false
(boolean)
: Whether to have time scaled variable. Default: false
(boolean)
: Whether to show the label. Default: true
(number)
: The maximum number of characters, where the rest will be trimmed. Optional.
<Axis
variable="y"
side="left"
:tickRotation="-35"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getScale="getScale"
:getStack="getStack"
/>
(string)
: The key for the genome scale instance, passed to getScale.
(string)
: The side for the scale.
(number)
: The plot width.
(number)
: The plot height.
(number)
: The plot top margin.
(number)
: The plot left margin.
(number)
: The plot right margin.
(number)
: The plot bottom margin.
(function)
: Function that takes a scale key string and returns a scale instance.
(function)
: Function that returns a HistoryStack instance.
<GenomeAxis
:scaleKey="genome_scale"
side="bottom"
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
:getScale="getScale"
:getStack="getStack"
/>
(string)
: The axis variable key.
(string)
: The hierarchy data container key (passed to getData).
(string)
: The side for the scale.
(number)
: The plot width.
(number)
: The plot height.
(number)
: The plot top margin.
(number)
: The plot left margin.
(number)
: The plot right margin.
(number)
: The plot bottom margin.
(function)
: Function that takes a scale key string and returns a scale instance.
(function)
: Function that returns a HistoryStack instance.
(function)
: Function that takes a data key string and returns a DataContainer instance.
<DendrogramAxis
variable="sample_id"
h="sample_clusters"
side="top"
:pWidth="500"
:pHeight="300"
:pMarginTop="300"
:pMarginLeft="10"
:pMarginRight="10"
:pMarginBottom="10"
:getData="getData"
:getScale="getScale"
:getStack="getStack"
/>
This component is a container for axis and plot components, which passes its props to its children and imposes styles.
(number)
: The plot width.
(number)
: The plot height.
(number)
: The plot top margin.
(number)
: The plot left margin.
(number)
: The plot right margin.
(number)
: The plot bottom margin.
(boolean)
: Show a download button (in top left corner). Optional. Default: false.
(number)
: x-offset of the download button. Optional. Only makes sense to use if showDownloadButton is true.
(number)
: y-offset of the download button. Optional. Only makes sense to use if showDownloadButton is true.
(number)
: size of the download button. Optional. Default: 16. Only makes sense to use if showDownloadButton is true.
(string)
: color of the download button. Optional. Default: "#C0C0C0". Only makes sense to use if showDownloadButton is true.
<PlotContainer
:pWidth="500"
:pHeight="300"
:pMarginTop="10"
:pMarginLeft="120"
:pMarginRight="10"
:pMarginBottom="150"
>
<Axis
slot="axisLeft" <!-- note the slot prop -->
variable="exposure"
side="left"
:tickRotation="-35"
:getScale="getScale"
:getStack="getStack"
<!-- note the axis props that are omitted because they are being inherited -->
/>
<BarPlot
slot="plot" <!-- note the slot prop -->
data="exposures_single_data"
x="signature"
y="exposure"
:getData="getData"
:getScale="getScale"
<!-- note the plot props that are omitted because they are being inherited -->
/>
<Axis
slot="axisBottom" <!-- note the slot prop -->
variable="signature"
side="bottom"
:tickRotation="-65"
:getScale="getScale"
:getStack="getStack"
:disableBrushing="true"
<!-- note the axis props that are omitted because they are being inherited -->
/>
</PlotContainer>
(string)
: The legend variable key.
(string)
: The legend style.
(number)
: The legend width.
(number)
: The height of each legend item.
(function)
: Function that takes a scale key string and returns a scale instance.
(function)
: Function that returns a HistoryStack instance.
(function)
: Function that is called when clicking on legend element names. Optional.
<CategoricalLegend
variable="y"
lStyle="bar"
:lWidth="500"
:getScale="getScale"
:getStack="getStack"
/>
(string)
: The legend variable key.
(number)
: The legend width.
(function)
: Function that takes a scale key string and returns a scale instance.
(function)
: Function that returns a HistoryStack instance.
(boolean)
: Whether to disable brushing functionality and hide the zoomed-out "context" view. Default: false
<ContinuousLegend
variable="y"
:lWidth="500"
:getScale="getScale"
:getStack="getStack"
/>
(string)
: The legend variable key.
Accepts any props that CategoricalLegend or ContinuousLegend accept and passes them on.
<Legend
variable="y"
:lWidth="500"
:getScale="getScale"
:getStack="getStack"
/>
This component helps make simple sorting controls. To sort by an individual variable use optionName and optionVariable props. To give provide sort-by options in terms of a scale's domain use optionScale prop instead.
(string)
: The key of the scale to be sorted.
(string)
: The key of the data that will be used to do the sorting.
(string)
: A categorical scale of variables to sort by. Ignored if using optionVar and optionName props instead.
(string)
: A variable to sort by. Ignored if using optionScale instead.
(string)
: The human-readable name of the variable to sort by. Ignored if using optionScale instead.
(string)
: The key of the scale whose comparator is to be used to do the sorting.
(function)
: The scale getter function.
(function)
: The stack getter function.
(function)
: The data getter function.
<SortOptions
variable="sample_id"
data="exposure_sbs"
optionScale="sig_sbs"
:getScale="getScale"
:getData="getData"
:getStack="getStack"
/>
<SortOptions
variable="sample_id"
data="exposure_sbs"
optionVariable="age"
optionName="Age"
:getScale="getScale"
:getData="getData"
:getStack="getStack"
/>
Represents a container of a data array.
(string)
The ID for the data.
(string)
The name for the data.
(any)
The data to hold, or a promise that will return the data.
(Expected)
An object on which to subscribe to data.
Represents a single event in the application's history. Given an event type, ID, action, and parameters, the event will be able to be executed in the following way:
action
will be invoked on the returned object, using the array of params as parameters(number)
Event type, such as SCALE, etc...
(number)
Event subtype, such as SCALE_DOMAIN, etc...
(string)
Event identifier, used for history
(string)
Method to call on the object.
(array)
Parameters with which to call the method.
(HistoryEvent)
Another history event.
boolean
:
Whether the other history event is related to this.
Represents a history of all application interaction events, which can be used for forward(redo)/backward(undo) navigation.
(object)
Mapping from event type (int) -> getter function (function).
(object)
Mapping from event subtype (int) -> reset function name (string).
Push an event onto the stack.
(HistoryEvent)
The event to push.
Pop an event from the top of the stack.
HistoryStack
:
The last event.
Prune the stack, removing any events "above" the current pointer
Find the most recent "related" event. Dips into the "initial" events if needed.
(HistoryEvent)
The event to reference.
(any)
HistoryEvent
:
A "related", but previous event.
Goes back by executing the most recent "related" event, in relation to the currently-pointed-to event. Decrements the stack pointer.
Goes forward by executing the next event. Increments the stack pointer.
Decrements the stack pointer, or sets to undefined.
Increments the stack pointer, or sets to zero.
Execute a provided event.
(HistoryEvent)
Scale parent class to handle dispatching for highlights, updates.
Emit the highlight event.
Emit the highlight destroy event.
Emit the update event.
Abstract class representing a scale.
Extends AbstractScaleDispatcher
(any)
The ID for the scale.
(any)
The name for the scale.
(any)
The domain for the scale.
(any)
The key of the color scale to be used.
(Expected)
An object on which to subscribe to data.
array
:
The values that variables using this scale can take after filtering.
Converts a domain value to a color
(any)
A domain value
color
:
A color value
Convert a domain value to a human-readable value.
(any)
A domain value
any
:
The corresponding humanDomain value
Resets the color scale.
Resets the filtered domain, using the full domain.
Scale class for binary variables.
Extends CategoricalScale
(string)
The ID for the scale.
(string)
The name for the scale.
(Expected)
An object on which to subscribe to data.
Scale class for categorical variables.
Extends AbstractScale
(string)
The ID for the scale.
(string)
The name for the scale.
(array)
The domain for the scale, or a promise.
(array)
The humanDomain for the scale, or a promise. Optional.
(object)
The default colorOverrides for the scale. Optional.
(any)
(Expected)
An object on which to subscribe to data.
Human-readable domain values
array
:
The human-readable domain values
object
:
Mapping from domain value to colors for overridden values.
(any)
(any)
(any)
(any)
(any
= true
)
Sort the domain based on the data passed.
Resets the color override object.
Resets the color override object.
Scale class for continuous variables.
Extends AbstractScale
Scale class for a genome variable. Note: this does NOT inherit from AbstractScale.
Extends AbstractScaleDispatcher
(any)
The ID for the scale.
(any)
The name for the scale.
Resets the filtered domain, using the full original domain.
Represents an object on which an external consumer may await data from a particular source.
Schema for emitted data payloads:
{
"data": {
"my-dataset-id":
Generate seeded random numbers, e.g. for jitter plot
(number)
The seed.
function
:
The random number generator function.
Enum of the base event types.
Enum of the base event subtypes.
Enum of the base event subtype resets.
Returns an object that represents a "computed" history event parameter.
(int)
Key of function to be called (match to getterFunctionMapping passed to HistoryStack).
(array)
Params passed to the function to be called.
object
:
Returns an object with an identifier signifying that this parameter should be computed.