Am trying to change start date and end date automatically in gantt chart
as following
var date_start = new Date();
gantt.config.start_date = new Date(date_start.getFullYear(), date_start.getMonth(), date_start.getDate(), 00, 59);
gantt.config.end_date = new Date(date_start.getFullYear(), date_start.getMonth(), date_start.getDate(), 23, 59);
gantt.render();
but got the following error
TypeError: el is undefined
var left = Math.max(el.offsetLeft - this.config.task_scroll_offset, 0);
need help,
thank you in advance