Our state of the art Gantt chart


Post by devyl24 »

Hi,
When i use the json from demo, everything looks great, but when i put our json , i get this error:

Cannot read property 'startDate' of undefined
at DateInterval.intersect (gantt.module.js:126121)
This is the error i'm getting
This is the error i'm getting
Screenshot_1.png (21.7 KiB) Viewed 2991 times
Besides the end Date, early/late start/end dates are not calculated.

I presumes this is the main reason for not calculating critical path also.

Thank you in advance

Post by mats »

How can we reproduce this? Could you please upload a simple sample so we can investigate?

Post by devyl24 »

Hi Mats,

Thanks for your quick reply,

Here is the sample
project-gantt.txt
(113.56 KiB) Downloaded 165 times
Thanks again

Post by sergey.maltsev »

Hi, devyl24!

I've created this issue to fix it.
https://github.com/bryntum/support/issues/490

Meanwhile as a temporary workaround you could try to extract dependencies from project's json file and add them after project load.
For example like this.
project.load().then(() => {
    AjaxHelper.get('dependencies.json', { parseJson : true }).then(response => {
        gantt.project.dependencyStore.add(response.parsedJson.dependencies.rows);
    });
});
Zipped json files attached.
Attachments
project-gantt.zip
(6.18 KiB) Downloaded 133 times

Post by devyl24 »

Hi Sergey,

After i apply your workaround, now console is error free, but all the tasks are having same start date and same end date despite of json value


Thanks

Post by nickolay »

Hi,

There's a number of dependencies from parent to child in the data: 101 -> 100001, 100001 -> 25000000119.

This forms a cycle in the computations and we were silently ignoring during the initial data load - we'll fix this to throw an error. It is expected that your dependencies do not form cycles.

Post by devyl24 »

Hi Nickolay,

What should i do , if we need dependencies drawn from parent to child ?
Is there some easy fix for accomplish that ?

Post by nickolay »

Hm.. Can't see any easy way of doing this. If you need a dependency from parent to child - it should be just a purely visual thing, which does not affect the schedule. However we don't support anything like that currently - all dependencies affect the schedule.

Post by nickolay »

What is the meaning of the parent to child dependency in your system?

Post by devyl24 »

Hi,

We have the following levels of items which we need to represent in the gantt:
Level 1: Parent
Level 2: Sub-parents (minimum 1 per parent)
Level 3: Milestones (minimum 1 per sub-parent)
Level 4 to maximum level 9: sub-activities (from 0 to many per milestone)

Then, we have the following dependencies we need to represent:
- with a gray line from level 1 to level 2 and from level 2 to level 3: these are visually only and will not impact the project due date
- with colored lines dependencies between Milestones and sub-activities and vice-versa: these do impact the project due date.

I need to mention that with the previous version of Ext js Bryntum Gantt we were able to do this!
Here is an example:
our-goal.png
our-goal.png (44.09 KiB) Viewed 2947 times

Post Reply