A super module that collects available sub-modules.
- Source:
Classes
Namespaces
Methods
(static) createPlotSidebar(content, event, dataFrame, options) → {HTMLElement}
Create the content for the visualizazion of plots in the sidebar
Parameters:
Name | Type | Description |
---|---|---|
content |
HTMLElement | container element |
event |
object | "visualize" event of the MeasurementsLayer |
dataFrame |
DataFrame | |
options |
string | {groupBy, defaultYAxis, invertYAxis, defaultXAxis, invertXAxis, hiddenColumns} |
Returns:
content
- Type
- HTMLElement
(static) readUTCDate(date) → {Date}
Convert a time string to a UTC date object.
Observe: Does not change time zones.
Parameters:
Name | Type | Description |
---|---|---|
date |
String | UTC Date in ISO time format. |
- Source:
Returns:
Date time object.
- Type
- Date
(static) renderDataframePlot(container, dataFrame, iX, labelX, iY, labelY, invertXAxis, invertYAxis, hoverY) → {HTMLElement}
Render the plot on the given HTMLElement.
Also used for re rendering, when the axis changes
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | (optional) |
dataFrame |
DataFrame | |
iX |
number | index of x column |
labelX |
string | label of x column |
iY |
number | index of y column |
labelY |
string | label of y column |
invertXAxis |
boolean | |
invertYAxis |
boolean | |
hoverY |
boolean |
Returns:
container
- Type
- HTMLElement
(static) renderPlot(container, labelX, labelY, data, invertXAxis, invertYAxis) → {HTMLElement}
Render the plot on the given HTMLElement.
Also used for re rendering, when the axis changes
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | (optional) |
labelX |
string | label of x column |
labelY |
string | label of y column |
data |
Array.<object> | |
invertXAxis |
boolean | |
invertYAxis |
boolean |
Returns:
container
- Type
- HTMLElement
(static) setAxisLimits(data, layout, offsetFactoropt) → {Object}
For each plotly axis, set axis limits with respect to the data.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Array | Plotly data config. | ||
layout |
Object | Plotly layout config. | ||
offsetFactor |
Number |
<optional> |
0.02 | Space between axis and data point. |
- Source:
Returns:
Updated layout config.
- Type
- Object