histogram_cell_label

defines the label inside a cell

Parameters

start_dateDatestart date of the scale cell
end_dateDateend date of the scale cell
resourceobjectthe resource object
tasksarraytasks that are assigned to the specified resource and overlap start/end dates of the cell

Available only in PRO Edition

Example

gantt.templates.histogram_cell_label = function(start_date,end_date,resource,tasks){
    return tasks.length * 8;
};

Details

This functionality is available in the PRO edition only.

See also
Back to top