returns duration of task (in hours)
var project = ganttChart.getProjectById(2); var task = project.getTaskById(55); var hrs = task.getDuration();