Gantt based on hours and minutes - please help

Hi All,

Wondering if you could help. I am trying to create a gantt, where the entire duration would be a week and the units would be minutes.

The problem I have is that the Gantt builds but I can’t resize any tasks. As soon as I click on one it shrinks to the lowest uit i.e. a minute and then can’t be resized. My simple config is below. Can anyone see what i’m doing wrong. I’ve also attached a screenshot if that helps

var tasks = {
data:[
{id:1, text:“Test”, start_date:“01-01-01_00-00”, duration:3},
]
};

gantt.config.scale_unit = “minute”;
gantt.config.step = 1;
gantt.config.date_scale = “%i”;
gantt.config.duration_unit = “minute”;
gantt.config.duration_step = 1;
gantt.config.xml_date = “%y-%m-%d_%h-%i”;
gantt.config.drag_resize = true;
gantt.config.autosize = “y”
gantt.config.columns = [{
name: “text”,
label: “Name”,
tree: true,
resize: true
}
];

gantt.init(“holder-steps-gantt”);
gantt.parse(tasks)


Hello,

You need to set also ‘min_duration’ config.
docs.dhtmlx.com/gantt/api__gantt … onfig.html

gantt.config.min_duration = 1*60*1000; 

It’s not necessary to use next settings because it is default values for the configs:
gantt.config.drag_resize = true;
gantt.config.step = 1;
gantt.config.duration_step = 1;

docs.dhtmlx.com/gantt/snippet/524a5e20