Dates

Ejs gantt chart start date and end date not taking my endpoint date it somehow makes its own data


1 Reply

UA Udhayakumar Anand Syncfusion Team May 26, 2023 02:05 PM UTC

Hi Meissa,


Greetings from Syncfusion


We have thoroughly reviewed your query and have identified two possible scenarios that might be causing this issue.


The first scenario occurs when you map the duration of the task. In this case, our system gives high priority to the duration, and the taskbar is rendered based on the specified duration. This could be the reason why the start and end dates are not aligning with your endpoint date.


The second scenario arises when the start date and end date fall on weekends or holidays. To ensure accurate rendering, we internally validate and adjust the taskbar with updated dates in such cases. However, if you wish to include weekends in the date calculations, you can achieve that by setting the "includeWeekend" property to true. This will ensure that the weekends are considered as working days in your Gantt chart.


Code Snippet:

/*app.component.html*/

<ejs-gantt

[includeWeekend] = "true"


Sample Link : https://stackblitz.com/edit/angular-pzavnt?file=src%2Fapp.component.html


We hope that by following these guidelines, you will be able to resolve the issue you have encountered. Should you require any additional assistance or have further questions, please do not hesitate to reach out to us.


Regards,

Udhayakumar


Loader.
Up arrow icon