49
Views
5
Comments
[Gantt Highcharts] Multiple dependencies
Question
gantt-highcharts
Reactive icon
Forge asset by Paulo Torres

Hi,

is it possible to use this chart with multiple dependencies per task?

Thanks.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi José,

It's possible to use only one dependency (The line linking tasks). I made a fast research I didn't found anything like that in Highcharts library.

I believe it's not possible but I'll try to be sure if it's possible to implement somehow.

Regards

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi Paulo and Jose,

in Highcharts Gantt, it is possible to pass an array to dependency property.  And an array of one is also working.

I tried with this forge component, turning the attribute Dependency in both SourceDataPoint and Gantt_Data structures from type Text to type Text List, does the trick.

There is a problem after that with the javascript in the InitializeChart node that formats the accessibility information, because it references dependency.name.  I didn't look into it, just commented it out, but after that, I'm able to define both single and multiple dependencies.

This is the example chart from the demo of that component, I added a double dependency for Subtask 23 on both Subtask 1 and Subtask 2.

see in element tree, the "Depends on" is now broken.  So that would need some more work, listing all the tasks it depends on.

Dorine

2023-08-28 07-00-10
Paulo Torres
Champion

Hi Dorine,

There is a reason for dependency over the name, when the item is parent the ID should be the same than NAME and I want the name in the chart, not the ID. I don't understand well why this works like that :)

This need some more exploration to get this working without breaking the rest.

Anyway thanks for your feedback.

Regards

2021-09-06 15-09-53
Dorine Boudry
 
MVP

I'm not entirely sure I got my point across correctly, of course you still want to show the name.

What i meant was that allowing multiple dependencies means that references to the name of a dependency has to take into consideration multiple names now instead of just one.

this change in the javascript



results in showing the correct dependencies in the accessibility 

Dorine

2023-08-28 07-00-10
Paulo Torres
Champion

I understand now what you mean, my bad :)

Thanks for the explanation

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.