This article explains how define a Timeline element. This element is composed of an LineChart component.
| Property | Type | Value | Description |
|---|---|---|---|
id |
string |
ID of the element on the page | |
type |
string |
"Timeline" | |
title |
string |
Title that will appear at the top of the view | |
subtitle |
string |
Description of the chart (displayed as tooltip) | |
size |
{ w: number, h: number} |
Width/Height of the view | |
dependencies |
object |
Dependencies that are required for this element | |
props |
object |
Additional properties to define for this element |
Define dependencies as follows:
| Property | Type | Description |
|---|---|---|
values |
string |
Reference to data source values |
lines |
string |
Reference to data source lines |
timeFormat |
string |
Reference to data source timeline |
dependencies: {
values: "ai:timeline-graphData",
lines: "ai:timeline-channels",
timeFormat: "ai:timeline-timeFormat"
}Define props as follows:
| Property | Type | Description |
|---|---|---|
lineProps |
object |
LineChart properties |
- Tip:
linePropscan be used to specify additional properties of the LineChart chart component such assyncIdto link related charts. Refer to the LineChart API for more info.
props: {
lineProps: {
syncId: "sharedId"
}
}