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

Want to drag dependency when dependent bar was moved

Fri Apr 07, 2023 9:49 am

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

Sai varma

Posts: 707
Joined: Thu Oct 06, 2022 11:31 am

Re: Want to drag dependency when dependent bar was moved

Tue Apr 11, 2023 10:17 am


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).


​If you have further inquiries, you may reach out to me at any time.
Best regards!

Return to “Highcharts Gantt”