Sai varma
Posts: 6
Joined: Tue Mar 14, 2023 2:55 pm

After dragging the end point it was cosidering next date as end date

In interactive Gantt chart, after moving the end pint to a particular date it was considering next date as end ( 0 hours of next date of selected end date ),

kindly help me on the above query,

thanks
Sai varma
jedrzej.r
Posts: 700
Joined: Tue Jan 24, 2023 11:21 am

Re: After dragging the end point it was cosidering next date as end date

Hi!

Thanks for contacting us with your question!

Unfortunately, by reading your description I'm not able to reproduce this problem. Could you please provide a working example in an online editor and describe when exactly does this problem occur? You can share your soluton by using this demo: https://jsfiddle.net/BlackLabel/dgq8bemv/.

Best regards!
Jędrzej Ruta
Highcharts Developer
Sai varma
Posts: 6
Joined: Tue Mar 14, 2023 2:55 pm

Re: After dragging the end point it was cosidering next date as end date

Hi,

when i use dragPrecisionX: day, after dragging the end point to a particular date (for example dragged to 24/03/2023 ) it was considering the next date (25/03/2023) as end for the task, but I was trying to get (24/03/2023) as end date.
Please refer the interactive Gantt demo and change dragPrecisionX as day and drag the end point of any task then you can have clear view on the above question

thanks
Sai Varma
jedrzej.r
Posts: 700
Joined: Tue Jan 24, 2023 11:21 am

Re: After dragging the end point it was cosidering next date as end date

Hi!

I've been able to reproduce your problem and with a simple override using Higcharts.wrap it's possible to achieve what you've described. When the end date position changes (when dragging whole bar or just its end), by substracting 1000 ms (1 second) from the end value, the end date changes to last minute of desired day rather than midnight of next day.

Demo: https://jsfiddle.net/BlackLabel/36x21abf/

References:
https://www.highcharts.com/docs/extendi ... highcharts

Let me know if that was what you were looking for!
Best regards!
Jędrzej Ruta
Highcharts Developer
Sai varma
Posts: 6
Joined: Tue Mar 14, 2023 2:55 pm

Re: After dragging the end point it was cosidering next date as end date

Hi,

Thanks for support it was working fine

With regards
Sai varma
jedrzej.r
Posts: 700
Joined: Tue Jan 24, 2023 11:21 am

Re: After dragging the end point it was cosidering next date as end date

I'm glad to hear that!

In case of any other questions, feel free to ask anytime.
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Gantt”