gantt-task-react
gantt-task-react copied to clipboard
Chart plotting seems to be incorrect
Hi @maberalc , @MaTeMaTuK , @Janlaywss , @hexagonatron , @VikariiCGI
I am getting issue with chart plotting. It is always plotting one day lesser than the given date. Lets take the example of demo Start Date is 1st Sept and End date is 15th Sept. So I believe my sprint duration is for 15 days and not for 2 week. I wanted to plot the chart till 15th Sept but in the example it is plotting till 14th Sept.
Hi @maberalc , @MaTeMaTuK , @Janlaywss , @hexagonatron , @VikariiCGI
I am getting issue with chart plotting. It is always plotting one day lesser than the given date. Lets take the example of demo Start Date is 1st Sept and End date is 15th Sept. So I believe my sprint duration is for 15 days and not for 2 week. I wanted to plot the chart till 15th Sept but in the example it is plotting till 14th Sept.
So I got your point but actually the calculations are done as per next Day Date i.e. if the start is 1st Sept then 15 days = 15 Sept will be the end Date In this if you want a perfect solution then if you can calculate the end date as 14 august 23:59:59 then what you want might work
Still it will break the calculation. If I keep start date as 1st Sept and end date is 14th sept.
It will show correctly in the task list column from 1st sept - 14th Sept
but again it will be plotting wrong chart, it will be till 13th Sept, Also calculation mismatch in tooltip by 1 day.
Hi @MaTeMaTuK, I will check that.
Still it will break the calculation. If I keep start date as 1st Sept and end date is 14th sept.
It will show correctly in the task list column from 1st sept - 14th Sept
but again it will be plotting wrong chart, it will be till 13th Sept, Also calculation mismatch in tooltip by 1 day.
Let say you have [ start =1 sept & 0 hours ] the 14 days will be : [ end = 14 sept 23 hours 59 mins 59 sec ]
however if you can calculate this date logically then you will be able to achieve what you want