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

Want to drag dependency when dependent bar was moved

Hi there,

In interactive gantt chart, when the dependent task were moved I want to move it's dependency bar to its new dates which means the dependency bar should start from the next day of the dependent bar end and the dependency end should be based on its duration

Kindly guide me to achieve the above logic

Thanks
Sai varma
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: Want to drag dependency when dependent bar was moved

Hello,

Thanks for contacting us with your question!

The API does not provide such an event, so you have to add such functionality to the getDropValues method yourself. I have included an example implementation in the demo below. With the help of comments, I marked the exact place of this implementation, between which it is located (from 55 to 72 lines).

Demo: https://jsfiddle.net/BlackLabel/zakgb70f/

​If you have further inquiries, you may reach out to me at any time.
Best regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Gantt”