Gantt is not displaying anything if task startdate/time and enddate/time are same


#1

i have a scenario where a task has same start date/time and end date/time , as result i am not able to see any timeline , there is any option for to at least display a line for that particular date?? because there is nothing displayed in gantt if start date/time and end date/time is same for a task.


#2

Hello,
You can do that by specifying global start_date and end_date parameters:
https://docs.dhtmlx.com/gantt/api__gantt_start_date_config.html
https://docs.dhtmlx.com/gantt/api__gantt_end_date_config.html
Here is an example:
http://snippet.dhtmlx.com/ecdc8bcd8


#3

hi,
i have same scenario as the snippet u shared, where in data the startdate and end date is same,so i can see small line in april 1,but in my case i cant see any line even i have same startdate and enddate in my data


#4

Hello,
You need to make sure that the task dates fit the date range, i.e. they are between global start_date and end_date parameters.
If that doesn’t help you, please try reproducing the issue in the snippet above, then click on the “Share” button and send me the link.


#5

Hi,
I think we resolved the issue, as we were over riding the default gantt border and setting it to 0px, that was the reason we were not able to see the line.