Interface: TimelineConfigInterface
Extends
Extended by
Properties
noDataMessage?
optionalnoDataMessage:string|false
Text to display when there is no data. When set to false, this message will not be displayed.
Default
'No data'Inherited from
DisplayStateConfigInterface.noDataMessage
loadingMessage?
optionalloadingMessage:string|false
Text to display when data is loading. When set to false, this message will not be displayed.
Default
'Data loading...'Inherited from
DisplayStateConfigInterface.loadingMessage
disableStateMessages?
optionaldisableStateMessages:boolean
Whether to disable all messages in the DisplayState element.
Default
falseInherited from
DisplayStateConfigInterface.disableStateMessages
allowPointerEvents?
optionalallowPointerEvents:boolean
Whether to allow pointer events on the DisplayState element when message is visible.
Default
falseInherited from
DisplayStateConfigInterface.allowPointerEvents
padding?
optionalpadding:Padding
Padding between the outer edges of the timeline. Affects only timeline container without animation button. Set in pixels.
Default
{ top: 1, left: 5, bottom: 1, right: 5 }axisTickHeight?
optionalaxisTickHeight:number
Height of the ticks that appear along the timeline axis. Set in pixels.
Default
16selectionRadius?
optionalselectionRadius:number
Corners roundness of the data selection brush. Set in pixels.
Default
3selectionPadding?
optionalselectionPadding:number
Padding of the data selection brush. Set in pixels.
Default
8barCount?
optionalbarCount:number
Number of bars to be displayed in the timeline.
Ignored if dataStep is set.
Default
250barRadius?
optionalbarRadius:number
Corners roundness of each bar on the timeline. Set in pixels.
Default
1barPadding?
optionalbarPadding:number
Padding between each bar on the timeline. Set in percent of bar width from 0 (as 0% of the bar width) to 1 (as 100% of the bar width).
Default
0.1barTopMargin?
optionalbarTopMargin:number
Margin between the top edge of the timeline and the maximum height bar. Set in pixels.
Default
20minBarHeight?
optionalminBarHeight:number
Height of bars with an empty data on the timeline. Set in pixels.
Default
1stickySelection?
optionalstickySelection:boolean
Stick selection brush coordinates to the bar edges.
Default
trueallowSelection?
optionalallowSelection:boolean
Determines whether or not the timeline allows users to select a range of dates using a selection brush control.
Default
trueshowAnimationControls?
optionalshowAnimationControls:boolean
If set to true, shows an animation control button that allows to play or pause animation of selected range of dates.
Default
falseanimationSpeed?
optionalanimationSpeed:number
Rate of refresh for each selection brush movement. Set in ms.
Default
50dataStep?
optionaldataStep:number
Generate bars of width of this value mapped in the X axis units.
Overrides barCount.
Set in ms for Date[] data.
Default
undefinedtickStep?
optionaltickStep:number
Interval between each tick mark on the timeline axis.
Set in the X axis units, in ms for Date[] timeline data or in relative units for number[] timeline data.
Custom dateFormat may be required for the proper display of tick labels if the timeline data is Date[].
Default
undefinedformatter()?
optionalformatter: (date) =>string
Formatter function for ticks displayed on the timeline axis.
Parameters
| Parameter | Type | Description | 
|---|---|---|
date | number | Date | The date or number to format | 
Returns
string
The formatted string representation of the date/number
onBrush()?
optionalonBrush: (selection,isManuallySelected?) =>void
Callback for the range selection. Provides current selection of Timeline.
Parameters
| Parameter | Type | Description | 
|---|---|---|
selection | undefined | [number, number] | [Date, Date] | The current selection range as [start, end] dates or numbers | 
isManuallySelected? | boolean | Whether the selection was made by user interaction | 
Returns
void
onBarHover()?
optionalonBarHover: (data) =>void
Callback that is called when a bar is hovered over.
Provides BarData for hovered bar: rangeStart, rangeEnd and count of records in this bar.
Parameters
| Parameter | Type | Description | 
|---|---|---|
data | TimelineBarData | The data for the hovered bar | 
Returns
void
onAnimationPlay()?
optionalonAnimationPlay: (isAnimationRunning,selection) =>void
Callback for the animation play that will be executed in playAnimation.
Provides isAnimationRunning state and current selection of Timeline.
Parameters
| Parameter | Type | Description | 
|---|---|---|
isAnimationRunning | boolean | Whether the animation is currently running | 
selection | undefined | (number | Date)[] | The current selection range | 
Returns
void
onAnimationPause()?
optionalonAnimationPause: (isAnimationRunning,selection) =>void
Callback for the animation play that will be executed in pauseAnimation.
Provides isAnimationRunning state and current selection of Timeline.
Parameters
| Parameter | Type | Description | 
|---|---|---|
isAnimationRunning | boolean | Whether the animation is currently running | 
selection | undefined | (number | Date)[] | The current selection range | 
Returns
void
onAnimationTick()?
optionalonAnimationTick: (selection) =>void
Callback that is called on each animation tick. Provides current selection of Timeline.
Parameters
| Parameter | Type | Description | 
|---|---|---|
selection | undefined | (number | Date)[] | The current selection range | 
Returns
void