RadiantQ jQuery Gantt Package
Gantt Chart AnchorTime
Previous Topic  Next Topic 

AnchorTime (and Start and End Times of the View)

The GanttChart also has a concept of "AnchorTime" which is the time that will be visible to the left of the chart when the chart loads. Note that this is not the time that dictates the start time of the view. In other words, AnchorTime also dictates the time at the middle of the view.





GanttChart loaded with AnchorTime set to April 2st 2012.

When ResizeToFit is set, the AnchorTime is shown right in the middle of the view.

To explicitly specify the start time of the view use the SetStartTime method. 

The End-Time of the view cannot be explicitly set. It varies based on the current zoom level (BaseTimeUnitWidth setting). Take a look at the "...Samples\TaskScaleStartAndEnd" sample for utility methods that will let you do this easily.


© RadiantQ 2022. All Rights Reserved.