jQuery.Gantt icon indicating copy to clipboard operation
jQuery.Gantt copied to clipboard

Focus gantt to given date

Open nedium opened this issue 10 years ago • 3 comments

Hi, I am not sure that this is the correct place to ask this but, Is there a function or parameter to focus gantt to given date?

My data covers the whole year, i display gantt chart in day view, i also want to scroll to date, for ex. 2015-04-01. Is there any way to achive this now, or can it be implemented?

nedium avatar May 07 '15 07:05 nedium

There's a private navigateTo function that's used internally to shift the chart view to its beginning/end/today/[pixel offset], but there's currently nothing written that will take a date string and scroll to that position.

@nedium, would you imagine this implemented as (A) an option that would set the initial view of the chart, or more as (B) something where the date could be somehow specified more interactively to allow jumping around the chart at-will? Or something else? (A) sounds like a reasonably small feature, though any interactive variant might be low on the list of priorities and not make it into the next two milestones..

usmonster avatar May 10 '15 18:05 usmonster

Hello,

I was wondering if there's been a solid solution for this problem yet?

Ivarrr08 avatar Jun 08 '16 07:06 Ivarrr08

(Sorry for the glacial delay...)

I think I prefer option A, so I'll add this to the next version, implemented as a scrollToDate option.

usmonster avatar Feb 24 '18 13:02 usmonster