Our state of the art Gantt chart


Post by hemag »

Hi Team,

We are using the percentDone column in our Gantt .It showing an incorrect value for parent task.
In our scenario-

  • Parent Task: WKP-525-R20 is showing 1% done, which seems incorrect.

  • There are 89 child tasks under it, out of which 4 tasks are completed (100%).

  • Based on the child tasks' progress, the % Done for the parent task should reflect a value 4%, but it is showing 1%.

Below is the column declaration in code

        {
          field: "percentDone",
          type: "percentdone",
          showCircle: true,
          cls: "gantt-header",
          editor: false,
        }

I have attached an Excel file with the relevant data for your reference.Could u pls provide any workarounds .

Thanks,
Hema

Attachments
Incorrect % done.xlsx
(13.04 KiB) Downloaded 9 times

Post by arcady »

Hello,

This is a quote from the "Task scheduling" guide ("Taking into account the project hierarchy" chapter) that explains how % complete is calculated:

The % completed value of a parent task is calculated based on its children's progress. It is determined by dividing the sum of each child's completed duration by the total duration of all children. The completed duration for each child is obtained by multiplying its individual percentage completion value by its duration.

Best regards,
Arcady


Post by arcady »

P.S. It looks I can't reproduce the issue. Please provide a test case or steps how the issue can we reproduced on some of our demos.


Post by hemag »

Hi Team,

Based on the formula mentioned in docs ,we just applied to the online demo (https://bryntum.com/products/gantt/examples/advanced/). So a/c to formula for 1.3 Setup Test Strategy Parent task %done value should be 20 but its showing 15 .
calculation as Follows-

	For 1.3 Setup Test Strategy Parent Task --2 child tasks
	[list]Hire QA staff[/list] - completed duration will be 200
	[list]Write test specs[/list]- completed duration will be 100
	[list]300/15 = 20 [/list]

could u please let us know is this correct if so the please let us know the calculation.Even our scenario also we have nested child tasks similar to 1.3 parent task.

Thanks,
Hema Gopisetty

Attachments
%Done.png
%Done.png (177.24 KiB) Viewed 2968 times

Post by arcady »

Hello,

It uses children data in depth:

Screenshot from 2025-03-21 09-41-20.png
Screenshot from 2025-03-21 09-41-20.png (118.27 KiB) Viewed 2946 times
  • Hire QA staff (duration 5d, % complete 40%, complete duration 2d)
  • Unit tests (duration 10d, % complete 20%, complete duration 2d)
  • UI unit tests / individual screens (duration 5d, % complete 10%, complete duration 0.5d)
  • Application tests (duration 10d, % complete 0%, complete duration 0d)
  • Monkey tests (duration 1d, % complete 0%, complete duration 0d)

Which results:
(2 + 2 + 0.5 + 0 + 0) / (5 + 10 + 5 + 10 + 1) = 4.5 / 31 = 0.14516

Best regards,
Arcady


Post Reply