When clicking on the Show Today button, “gantt.showDate(new Date())” if the latest date available for any chart is greater than 1 month? nothing happens.
Is it possible to have the Gantt chart show todays date anyway?
If I have a Gantt with 3 rows and the latest one ended Dec 31 2015, today is May 25, 2016 so 5 months later, can the Gantt be configured to display the 5 blank months in there? It would be very helpful to have this feature so the user can see visually this task ended many months ago.
But how is this done?
thanks
var date_to_str = gantt.date.date_to_str(gantt.config.task_date);
var id = gantt.addMarker({ start_date: new Date(), css: "today", text: "You Are Here", title: date_to_str(new Date()) });
setInterval(function () {
var today = gantt.getMarker(id);
today.start_date = new Date();
today.title = date_to_str(today.start_date);
gantt.updateMarker(id);
}, 10000 * 60);
Here is the current script, Im not able to see any errors when the task date was say from 2014? I want it to fill in 24 months, 24 blank spaces between the last date and now if it was 2 years; or fill in 3 months with nothing if the last date was 3 months ago. I have tried but cannot make it work, is it even possible?
Nobody knows?
no answer at all? I can get a faster answer asking my cat, but I already know the answer. meow, and that will only help a little bit.
if there were just details on the workings of this gantt chart, I’d be able to figure out the answer. This is why I tend to look for other solutions, as there is no support, it doesnt work? too bad.