8 Mar 20181 minute to read

The baseline is used to describe the original plan of the task, and it can be the same as current duration of the task or different. The following code example shows how to enable the baseline in Gantt control:

  • <!doctype html>
    <html lang="en" ng-app="listCtrl">
       <body ng-controller="GanttCtrl">
          <!--Add  Gantt control here-->    
          <div id="GanttContainer" ej-gantt
             e-baselinestartdatemapping= "baselineStartDate"
             e-baselineenddatemapping= "baselineEndDate"
             e-renderbaseline= "true"

    The following screenshot shows the baseline in Gantt control: