Render Timeline From 1 to 365 Days in TypeScript Gantt Control

18 Nov 20181 minute to read

Gantt chart contains different types of in-built timeline view modes and it can be defined by using timelineViewMode property and also we can customize the timescale mode of top tier and bottom tier by using topTier.unit and bottomTier.unit properties. Timeline tier’s unit can be defined by using unit property and format property was used to define date format of timeline cell and formatter property was used to define custom method to format the date value of timeline cell.

In the bottomTier.unit timescale mode, it is possible to display timeline from 1 to 365 days by making use of the formatter in the timelineSettings property. The following example shows how to use the formatter method for timeline cells.