histogram_cell_allocated

defines the height of the filled area in the resourceHistogram

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_allocated=function(start_date,end_date,resource,tasks){
    return tasks.length * 8;
};

Details

This functionality is available in the PRO edition only.

The value of the template can be set from 0 to maxCapacity.

maxCapacity definition

If each row of the histogram is considered as a bar chart, maxCapacity is the height of the Y-scale of this chart. In the image below maxCapacity = 24:

See also
Back to top