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

Want to create,update and delete dependency between two bars by drag and drop of the dependency line

Hello there,
I want to create,update, and delete the dependency of a bar by changing it's start and end pointers, can anybody guide me to active this.
Currently I was able to change the dependency by selecting the bar and changing the dependency

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

Re: Want to create,update and delete dependency between two bars by drag and drop of the dependency line

Hello!

Welcome to our forum and thanks for contacting us with your question!

Based on your post I'm not certain about what are you trying to achieve. Have you tried looking through Gantt demos available here: https://www.highcharts.com/demo/gantt?

Check out this interactive chart that uses draggable points module: https://jsfiddle.net/gh/get/library/pur ... tive-gantt

In case of any other questions related to Highcharts functionality feel free to contact us anytime.
Best regards!
Jędrzej Ruta
Highcharts Developer
Sai varma
Posts: 6
Joined: Tue Mar 14, 2023 2:55 pm

Re: Want to create,update and delete dependency between two bars by drag and drop of the dependency line

I want to control the dependency line between two tasks from UI, which means on hover of the line I need to have delete option to delete the dependecy between tasks, and I want to have the points to the line to modify it as like task bars, is that possible with the Highcharts

Kindly help me on this.

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

Re: Want to create,update and delete dependency between two bars by drag and drop of the dependency line

Dependency lines don't have a built-in functionality on hover, although I've prepared an ad hoc solution on how you can display a delete button and remove hovered dependency line: https://jsfiddle.net/BlackLabel/os3rLa4q/.

As for modyfying lines length by dragging them like bar points, there is no easy way of achieving it and it goes beyond scope of support on our forum. If you need help with your implementation, you can try to look for it on the more general forums like StackOverflow or contact the Black Label company that specializes in Highcharts custom projects. See official Black Label site: https://blacklabel.pl.

In case of any other questions related to Highcharts functionality feel free to contact us anytime.
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Gantt”