scrolls the chart area to makes the specified date visible

void showDate(Date date);
dateDatethe date to show in the chart


gantt.showDate(new Date()); //shows the current date


In the default mode, Gantt scrolls itself when you use the showDate method. But if the autosize mode is enabled, Gantt increases the size of its container to show itself on the page instead of showing the specified date. Read the Scrolling to hidden elements article to know how to solve this problem.

See also
Back to top