TimelineChartDataProviderBase
Interface for chart data provider.
Configs
5
Configs
5Common
Properties
10
Properties
10Class hierarchy
Other
Returns list of supported datasets.
Misc
Functions
25
Functions
25Other
Returns dataset for the chart
| Parameter | Type | Description |
|---|---|---|
viewConfig | TimelineChartViewConfig | |
datasets | String[] | List of dataset names to return |
Configuration
Events
Events
4
Events
4TimelineChart listens to this event to refresh the chart. Trigger this event if data is changed from within the data provider.
// Adding a listener using the "on" method
timelineChartDataProviderBase.on('refresh', ({ }) => {
});Event handlers
4
Event handlers
4TimelineChart listens to this event to refresh the chart. Trigger this event if data is changed from within the data provider.
new TimelineChartDataProviderBase({
onRefresh({ }) {
}
});Typedefs
5
Typedefs
5Data series meta data
| Parameter | Type | Description |
|---|---|---|
name | String | Dataset name |
text | String | Dataset description |
Dataset for the chart
| Parameter | Type | Description |
|---|---|---|
maxValue | Number | Maximum value in the series |
lineData | TimelineChartLineData[] | Line points definition |
Defines line points. Line point is measured from the top left corner of the SVG canvas. Actual position should be determined by the chart provider.
| Parameter | Type | Description |
|---|---|---|
x | Number | Horizontal coordinate |
y | Number | Vertical coordinate |
Timeline view parameters
| Parameter | Type | Description |
|---|---|---|
width | Number | Time axis view model total size |
height | Number | Height of the Gantt body element |
tickSize | Number | Size of the tick |
projectStartX | Number | Project start coordinate relative to the timeline start |
projectEndX | Number | Project end coordinate relative to the timeline end |