TimelineChartProviderBase
This class provides a base API for the chart providers. Chart provider is responsible for actually drawing the canvas and the chart. It is provided with data and view details by the timeline chart feature.
Chart canvas (implemented by subclasses) will be sized according to the timeline size. Width will be equal to the time axis size and height - to the timeline subgrid height. Canvas will be scrollable in horizontal direction and will remain at the top of the timeline view on vertical scroll.
Configs
6
Configs
6Common
Other
Property allowing to customize the tooltip appearance.
Template used to generate tooltip contents when chart point is hovered.
const gantt = new Gantt({
features : {
timelineChart : {
chartProvider : {
tooltipTemplate({ dataset, date }) {
return `
<div>${dataset.label}: ${dataset.percent}%</div>
<div>${DateHelper.format(date, this.gantt.displayDateFormat)}</div>
`;
}
}
}
}
});
| Parameter | Type | Description |
|---|---|---|
data | Object | Tooltip data |
data.dataset | Object | Object with data attributes and their values read from the hovered HTML element |
data.date | Date | Currently hovered date rounded to the tick start |
Properties
11
Properties
11Class hierarchy
Other
Property allowing to customize the tooltip appearance.