Hi,
I am trying to extend chart vertically by setting gantt.config.end_date. I am setting it using gantt.config.end_date configuration but it does not work. Vertical range is always only 2 days longer than the longest task end date.
Can you tell me how to extend vertical range, pls.
Thanks, Paul
Below is my code:
const maxDate = new Date(data.items.reduce((prevItem: IChecklistItemGantt, currentItem: IChecklistItemGantt) => {
if (currentItem.dueDate) {
return (currentItem.dueDate > prevItem.dueDate ? currentItem : prevItem);
}
return prevItem;
}).dueDate);
gantt.config.end_date = new Date(maxDate.getFullYear() + 1, maxDate.getMonth(), maxDate.getDate());