sets the length of time, in milliseconds, before the tooltip hides
gantt.config.tooltip_hide_timeout = 5000;
gantt.init("gantt_here");
This option is defined in the tooltip extension, so you need to activate the tooltip plugin. Read the details in the Tooltips for Gantt Elements article.