The availability timeline widget displays events during specific intervals shown chronologically along a line, indicating the availability and unavailability periods for each data group. The widget is designed to provide a broad overview of a sequence of events in time.
Methods
# setAxisClass(className)
Set a custom class for the axis.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setDataFormatter(formatter)
Set a custom function to format.
Parameters:
Name | Type | Description |
---|---|---|
formatter |
function
|
Callback JavaScript function. |
# setDataHeight(height)
Set the height of the blocks.
Parameters:
Name | Type | Description |
---|---|---|
height |
number
|
Value in pixels. |
- Default Value:
- 18
# setDatasetClass(className)
Set a custom class for the dataset.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setDataThreshold(threshold)
Set a custom data threshold.
Parameters:
Name | Type | Description |
---|---|---|
threshold |
number
|
Threshold value. |
- Default Value:
- 1
# setDateFormatter(formatter)
Set the default formatter for dates.
Parameters:
Name | Type | Description |
---|---|---|
formatter |
string
|
Formatter. |
- Default Value:
- "DD/MM/YYYY HH:mm:SS"
# setGAxisClass(className)
Set a custom class for the grid axis.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setGDataClass(className)
Set a custom class for the data.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setGrouping(grouping)
Set the grouping interval.
Parameters:
Name | Type | Description |
---|---|---|
grouping |
number
|
Milliseconds. |
# setGTitleClass(className)
Set a custom class for the title of the grid.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setHasDataClass(className)
Set a custom class when has data.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setHasNoDataClass(className)
Set a custom class when have no data.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setHorzGridClass(className)
Set a custom class for the horizontal grid.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setIconCancel(iconName)
Set custom icon for when no data is available.
Parameters:
Name | Type | Description |
---|---|---|
iconName |
string
|
# setIconOk(iconName)
Set custom icon for when data is available.
Parameters:
Name | Type | Description |
---|---|---|
iconName |
string
|
# setKey(key)
Set the column name to show.
Parameters:
Name | Type | Description |
---|---|---|
key |
string
|
Column name. |
# setLegendClass(className)
Set a custom class for the legend.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setLegendHeight(height)
Set a custom height for the legend.
Parameters:
Name | Type | Description |
---|---|---|
height |
number
|
Value in pixels. |
- Default Value:
- 15
# setLegendMarginH1(margin)
Set a custom margin between the title and the content of the legend.
Parameters:
Name | Type | Description |
---|---|---|
margin |
number
|
Value in pixels. |
- Default Value:
- 17
# setLegendMarginH2(margin)
Set a custom margin between the subtitle and the content of the legend.
Parameters:
Name | Type | Description |
---|---|---|
margin |
number
|
Value in pixels. |
- Default Value:
- 2
# setLegendMarginLeft(margin)
Set a custom margin left for the legend.
Parameters:
Name | Type | Description |
---|---|---|
margin |
number
|
Value in pixels. |
- Default Value:
- 20
# setLegendMarginTop(margin)
Set a custom margin top for the legend.
Parameters:
Name | Type | Description |
---|---|---|
margin |
number
|
Value in pixels. |
- Default Value:
- 8.5
# setLegendTop(margin)
Set a custom margin top for the legend.
Parameters:
Name | Type | Description |
---|---|---|
margin |
number
|
Legend top. |
- Default Value:
- 11
# setLegendUnits(units)
Set a custom unit for the values.
Parameters:
Name | Type | Description |
---|---|---|
units |
string
|
Unit. |
# setLegendWidth(width)
et a custom width for the legend.
Parameters:
Name | Type | Description |
---|---|---|
width |
number
|
Value in pixels. |
- Default Value:
- 15
# setLineSpacing(spacing)
Set the spacing between of the blocks.
Parameters:
Name | Type | Description |
---|---|---|
spacing |
number
|
Value in pixels. |
- Default Value:
- 14
# setMargin(margin)
Set all margins around the widget: top, bottom, left and right.
Parameters:
Name | Type | Description |
---|---|---|
margin |
Object
|
|
top |
number
|
Value in pixels. |
right |
number
|
Value in pixels. |
bottom |
number
|
Value in pixels. |
left |
number
|
Value in pixels. |
- Default Value:
- {top: 100, right: 40, bottom: 20, left: 100}
# setPaddingBottom(padding)
Set the padding bottom.
Parameters:
Name | Type | Description |
---|---|---|
padding |
number
|
Value in pixels. |
- Default Value:
- 10
# setPaddingLeft(padding)
Set the padding left.
Parameters:
Name | Type | Description |
---|---|---|
padding |
number
|
Value in pixels. |
# setPaddingTopHeading(padding)
Set the padding top of the heading.
Parameters:
Name | Type | Description |
---|---|---|
padding |
number
|
Value in pixels. |
- Default Value:
- -50
# setSubheadingClass(className)
Set a custom class for the subtitle.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setSubtitleDateFormat(format)
Set the default formatter for the subtitle dates.
Parameters:
Name | Type | Description |
---|---|---|
format |
string
|
Formatter. |
- Default Value:
- "DD/MM/YYYY HH:mm:ss"
# setSubtitleTop(margin)
Set a custom margin top for the subtitle.
Parameters:
Name | Type | Description |
---|---|---|
margin |
number
|
Value in pixels. |
- Default Value:
- 17
# setTextHasNotData(text)
Set a custom text to show when no data.
Parameters:
Name | Type | Description |
---|---|---|
text |
string
|
Custom text. |
- Default Value:
- "No data available"
# setTimelineTitle(title)
Set a custom title for the timeline.
Parameters:
Name | Type | Description |
---|---|---|
title |
string
|
Text of the title. |
- Default Value:
- "Data Availability Plot"
# setTitleClass(className)
Set a custom class for the title.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setToolTipClass(className)
Set a custom class for the tooltip.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setTooltipHasDataClass(className)
Set a custom class for the tooltip when has data.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setTooltipHasNoDataClass(className)
Set a custom class for the tooltip when have no data.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setTransitionOpacity(opacity)
Set a custom time for the opacity transition.
Parameters:
Name | Type | Description |
---|---|---|
opacity |
number
|
Time in milliseconds. |
- Default Value:
- 200
# setValue(key)
Set the column with the value to show.
Parameters:
Name | Type | Description |
---|---|---|
key |
string
|
Column name. |
# setVertGridClass(className)
Set a custom class for the vertical grid.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |
# setYTitleClass(className)
Set a custom class for the Y axis title.
Parameters:
Name | Type | Description |
---|---|---|
className |
string
|
Class name. |