[index.Html]
<style>
.e-round {
display: block;
height: 20px;
width: 20px;
margin-top: 6px;
border-radius: 10px
}
.e-indicator-span {
color: transparent;
}
.e-low {
background: red
}
.e-partial {
background: orange
}
.e-full {
background: green
}
</style>
[app.component.ts]
public ngOnInit(): void {
this.data = [
{
//...
Indicators: [
{
'date': '03/27/2019',
'iconClass': 'e-round e-low',
'tooltip': 'Tooltip text',
'name': 'Tooltip text'
},
]
},
];
this.taskSettings = {
//...
indicators: 'Indicators'
};
this.timelineSettings = {
topTier: {
format: 'MMM, yyyy',
unit: 'Month',
},
bottomTier: {
unit: 'Week',
format: 'dd MMM'
},
timelineUnitSize: 150
},
}
} |
Hi Ram,We can define the Gantt timeline mode by using the property timelineViewMode and by using unit property of timelineSettings.topTier and timelineSettings.bottomTier we can specify the mode in both top tier and bottom tier separately, please refer the below documentation link.We have indicators support, using this we can render custom elements, icons on particular date of task. We can assign indicators for each tasks in data source and map this field by using taskFields.indicators property. Please find the below code example.
[index.Html]<style>.e-round {display: block;height: 20px;width: 20px;margin-top: 6px;border-radius: 10px}.e-indicator-span {color: transparent;}.e-low {background: red}.e-partial {background: orange}.e-full {background: green}</style>[app.component.ts]public ngOnInit(): void {this.data = [{//...Indicators: [{'date': '03/27/2019','iconClass': 'e-round e-low','tooltip': 'Tooltip text','name': 'Tooltip text'},]},];this.taskSettings = {//...indicators: 'Indicators'};this.timelineSettings = {topTier: {format: 'MMM, yyyy',unit: 'Month',},bottomTier: {unit: 'Week',format: 'dd MMM'},timelineUnitSize: 150},}}We have prepared a sample as per requirement, please find the below sample link. We can define tooltip for this indicator elements but currently we are facing an issue with this support.In this sample we have cleared the tooltip issue in workaround, please find the sample link below.We have logged issue report for this, this will be fixed and included in our Volume 2, 2019 Service pack 1 release, it will available end of August 2019.You can track the status of this issue by using following feedback link.Regards,Gurunathan