Our state of the art Gantt chart


Post by shimnx »

This is my data and I'm loading the data into the interface, why is the start time of the task, the end time of the task and the data don't match, what's the logic behind that

    {
                "eventsData": [
                    {
                        "id": "3a0923f3-2abe-527a-9c94-90b1fde5dfb8",
                        "parentId": null,
                        "name": "Planisware",
                        "percentDone": 0.0,
                        "startDate": "2023-02-06",
                        "endDate": "2023-02-10",
                        "schaefflerEndDate": "2023-02-09",
                        "rollUp": true,
                        "duration": 4,
                        "showInTimeline": null,
                        "baseLines": [],
                        "children": [
                            {
                                "id": "3a0923f3-2ac1-9f47-8258-cda3b14b8518",
                                "parentId": "3a0923f3-2abe-527a-9c94-90b1fde5dfb8",
                                "name": "Milestones",
                                "percentDone": 0.0,
                                "startDate": "2023-02-06",
                                "endDate": "2023-02-10",
                                "schaefflerEndDate": "2023-02-09",
                                "rollUp": true,
                                "duration": 4,
                                "showInTimeline": null,
                                "baseLines": [],
                                "children": [
                                    {
                                        "id": "3a0923f3-2ac1-46bb-5989-8470860c54d2",
                                        "parentId": "3a0923f3-2ac1-9f47-8258-cda3b14b8518",
                                        "name": "Gate 4 – project completion",
                                        "percentDone": 0.0,
                                        "startDate": "2023-02-06",
                                        "endDate": "2023-02-06",
                                        "schaefflerEndDate": "2023-02-05",
                                        "rollUp": true,
                                        "duration": 0,
                                        "showInTimeline": null,
                                        "baseLines": [],
                                        "children": null,
                                        "PhantomId": null,
                                        "expanded": null,
                                        "note": null,
                                        "draggable": false,
                                        "resizable": false,
                                        "constraintDate": null,
                                        "constraintType": null,
                                        "durationUnit": "day",
                                        "deadLineDate": null,
                                        "effort": 0.0,
                                        "effortDriven": null,
                                        "effortUnit": "hour",
                                        "inactive": null,
                                        "manuallyScheduled": false,
                                        "schedulingMode": null,
                                        "slackUnit": "day",
                                        "cls": null,
                                        "iconCls": null,
                                        "style": null,
                                        "taskIconCls": null,
                                        "parentIndex": null,
                                        "status": "To Do",
                                        "remark": null,
                                        "IsAllowDelete": true,
                                        "BookedHours": 0.0,
                                        "Priority": 50,
                                        "PriorityName": "Medium",
                                        "GroupId": "3a0844e3-7258-3183-ffd9-935012d12fea",
                                        "GroupName": "Others",
                                        "PlaniswareProjectId": "3a090951-495a-ec55-a833-7aad96032335",
                                        "PlaniswareProjectNumber": "160600832906",
                                        "PlaniswareTaskId": "3a090952-08e9-827b-38b8-a11ffc354185",
                                        "SAPWBSElement": null,
                                        "Budget": 0.000000,
                                        "DataSourceType": 1,
                                        "InvolveWorkLogs": []
                                    },
                                    {
                                        "id": "3a0923f3-2ac1-82ad-b600-399152fdb6a1",
                                        "parentId": "3a0923f3-2ac1-9f47-8258-cda3b14b8518",
                                        "name": "Gate 0 – project initiation",
                                        "percentDone": 0.0,
                                        "startDate": "2023-02-07",
                                        "endDate": "2023-02-07",
                                        "schaefflerEndDate": "2023-02-06",
                                        "rollUp": true,
                                        "duration": 0,
                                        "showInTimeline": null,
                                        "baseLines": [],
                                        "children": null,
                                        "PhantomId": null,
                                        "expanded": null,
                                        "note": null,
                                        "draggable": false,
                                        "resizable": false,
                                        "constraintDate": null,
                                        "constraintType": null,
                                        "durationUnit": "day",
                                        "deadLineDate": null,
                                        "effort": 0.0,
                                        "effortDriven": null,
                                        "effortUnit": "hour",
                                        "inactive": null,
                                        "manuallyScheduled": false,
                                        "schedulingMode": null,
                                        "slackUnit": "day",
                                        "cls": null,
                                        "iconCls": null,
                                        "style": null,
                                        "taskIconCls": null,
                                        "parentIndex": null,
                                        "status": "To Do",
                                        "remark": null,
                                        "IsAllowDelete": true,
                                        "BookedHours": 0.0,
                                        "Priority": 50,
                                        "PriorityName": "Medium",
                                        "GroupId": "3a0844e3-7258-3183-ffd9-935012d12fea",
                                        "GroupName": "Others",
                                        "PlaniswareProjectId": "3a090951-495a-ec55-a833-7aad96032335",
                                        "PlaniswareProjectNumber": "160600832906",
                                        "PlaniswareTaskId": "3a090951-e1d3-259e-cc25-06e57d34ebdb",
                                        "SAPWBSElement": null,
                                        "Budget": 0.000000,
                                        "DataSourceType": 1,
                                        "InvolveWorkLogs": []
                                    },
                                    {
                                        "id": "3a0923f3-2ac2-140b-5e46-2bf22a088d6d",
                                        "parentId": "3a0923f3-2ac1-9f47-8258-cda3b14b8518",
                                        "name": "Internal pre acceptance",
                                        "percentDone": 0.0,
                                        "startDate": "2023-02-08",
                                        "endDate": "2023-02-08",
                                        "schaefflerEndDate": "2023-02-07",
                                        "rollUp": true,
                                        "duration": 0,
                                        "showInTimeline": null,
                                        "baseLines": [],
                                        "children": null,
                                        "PhantomId": null,
                                        "expanded": null,
                                        "note": null,
                                        "draggable": false,
                                        "resizable": false,
                                        "constraintDate": null,
                                        "constraintType": null,
                                        "durationUnit": "day",
                                        "deadLineDate": null,
                                        "effort": 0.0,
                                        "effortDriven": null,
                                        "effortUnit": "hour",
                                        "inactive": null,
                                        "manuallyScheduled": false,
                                        "schedulingMode": null,
                                        "slackUnit": "day",
                                        "cls": null,
                                        "iconCls": null,
                                        "style": null,
                                        "taskIconCls": null,
                                        "parentIndex": null,
                                        "status": "To Do",
                                        "remark": null,
                                        "IsAllowDelete": true,
                                        "BookedHours": 0.0,
                                        "Priority": 50,
                                        "PriorityName": "Medium",
                                        "GroupId": "3a0844e3-7258-3183-ffd9-935012d12fea",
                                        "GroupName": "Others",
                                        "PlaniswareProjectId": "3a090951-495a-ec55-a833-7aad96032335",
                                        "PlaniswareProjectNumber": "160600832906",
                                        "PlaniswareTaskId": "3a090951-ea2a-922f-5323-918927aeb94c",
                                        "SAPWBSElement": null,
                                        "Budget": 0.000000,
                                        "DataSourceType": 1,
                                        "InvolveWorkLogs": []
                                    },

                            ],
                            "PhantomId": null,
                            "expanded": null,
                            "note": null,
                            "draggable": false,
                            "resizable": false,
                            "constraintDate": null,
                            "constraintType": null,
                            "durationUnit": "day",
                            "deadLineDate": null,
                            "effort": 0.0,
                            "effortDriven": null,
                            "effortUnit": "hour",
                            "inactive": null,
                            "manuallyScheduled": false,
                            "schedulingMode": null,
                            "slackUnit": "day",
                            "cls": null,
                            "iconCls": null,
                            "style": null,
                            "taskIconCls": null,
                            "parentIndex": null,
                            "status": "To Do",
                            "remark": null,
                            "IsAllowDelete": true,
                            "BookedHours": 0.0,
                            "Priority": 50,
                            "PriorityName": "Medium",
                            "GroupId": "3a0844e3-7258-3183-ffd9-935012d12fea",
                            "GroupName": "Others",
                            "PlaniswareProjectId": "3a090951-495a-ec55-a833-7aad96032335",
                            "PlaniswareProjectNumber": "160600832906",
                            "PlaniswareTaskId": "3a090951-d6fc-1985-715e-4b80bffa8f2b",
                            "SAPWBSElement": null,
                            "Budget": 0.000000,
                            "DataSourceType": 1,
                            "InvolveWorkLogs": []
                        },

                    ],
                    "PhantomId": null,
                    "expanded": null,
                    "note": null,
                    "draggable": false,
                    "resizable": false,
                    "constraintDate": null,
                    "constraintType": null,
                    "durationUnit": "day",
                    "deadLineDate": null,
                    "effort": 0.0,
                    "effortDriven": null,
                    "effortUnit": "hour",
                    "inactive": null,
                    "manuallyScheduled": false,
                    "schedulingMode": null,
                    "slackUnit": "day",
                    "cls": null,
                    "iconCls": null,
                    "style": null,
                    "taskIconCls": null,
                    "parentIndex": null,
                    "status": "To Do",
                    "remark": null,
                    "IsAllowDelete": true,
                    "BookedHours": 0.0,
                    "Priority": 50,
                    "PriorityName": "Medium",
                    "GroupId": "3a0844e3-7258-3183-ffd9-935012d12fea",
                    "GroupName": "Others",
                    "PlaniswareProjectId": "3a090951-495a-ec55-a833-7aad96032335",
                    "PlaniswareProjectNumber": "160600832906",
                    "PlaniswareTaskId": "3a090951-f270-df1f-5828-f1886ab04aa5",
                    "SAPWBSElement": "S-029903",
                    "Budget": 0.000000,
                    "DataSourceType": 1,
                    "InvolveWorkLogs": []
                }

            ],
            "dependenciesData": [
                {
                    "id": "3a088dd3-c2e8-4775-099c-83bdb740cba9",
                    "fromTask": "7c254251-5b86-415a-b166-9babc11f754d",
                    "toTask": "3c9621a8-3986-47d3-8787-012cb349860a",
                    "lag": 0
                },
                {
                    "id": "3a088dd3-c2e8-7500-a876-e5355428009a",
                    "fromTask": "1bde7258-36d2-49c8-9ada-31a0c567fad9",
                    "toTask": "169eb034-3d67-4072-a923-626ca9a9e7cd",
                    "lag": 0
                },
                {
                    "id": "3a088de2-81f7-767b-02af-d0409ba1802f",
                    "fromTask": "7b9e3b82-b3d6-41b3-9118-4b67803c2051",
                    "toTask": "2e72c7f6-c17f-41af-a494-3c2cf32dd483",
                    "lag": 0
                }
            ],
            "resourcesData": [
                {
                    "id": "28038332",
                    "name": "Ren, Fang",
                    "image": "https://qakimigatewaybe.schaefflercn.com/WorkImg/28038332.jpg",
                    "orgCode": "OP/TCG-ZSID"
                },
                {
                    "id": "28040172",
                    "name": "Liu, Shuaishuai",
                    "image": "https://qakimigatewaybe.schaefflercn.com/WorkImg/28040172.jpg",
                    "orgCode": "OP/TCG-ZSID"
                },
                {
                    "id": "28038232",
                    "name": "Wang, Fang",
                    "image": "https://qakimigatewaybe.schaefflercn.com/WorkImg/28038232.jpg",
                    "orgCode": "Test 1201 A"
                },
                {
                    "id": "28036791",
                    "name": "Lan, Peng",
                    "image": "https://qakimigatewaybe.schaefflercn.com/WorkImg/28036791.jpg",
                    "orgCode": "OP/TCG-ZSA55"
                },
                {
                    "id": "28034779",
                    "name": "Shi, Minxuan",
                    "image": "https://qakimigatewaybe.schaefflercn.com/WorkImg/28034779.jpg",
                    "orgCode": "OP/TCG-ZSID"
                }
            ],
            "assignmentsData": [
                {
                    "id": "05d2aa58-e212-4e1c-ab30-9984063928fa",
                    "eventId": "05d2aa58-e212-4e1c-ab30-9984063928fa",
                    "resourceId": "28038232"
                },
                {
                    "id": "284dbf1e-da07-46dc-9a64-eaa7c474a6d5",
                    "eventId": "284dbf1e-da07-46dc-9a64-eaa7c474a6d5",
                    "resourceId": "28036791"
                },
                {
                    "id": "2e6660d9-cc3d-4267-b7b9-4c76b40fb222",
                    "eventId": "2e6660d9-cc3d-4267-b7b9-4c76b40fb222",
                    "resourceId": "28038232"
                },
                {
                    "id": "750858a7-1d65-43ba-b5a5-ba5a9fbdc0b5",
                    "eventId": "750858a7-1d65-43ba-b5a5-ba5a9fbdc0b5",
                    "resourceId": "28038332"
                },
                {
                    "id": "afe2a6ce-2bd8-4621-a8a9-4035b2b57b76",
                    "eventId": "afe2a6ce-2bd8-4621-a8a9-4035b2b57b76",
                    "resourceId": "28038232"
                }
            ],
            "calendarsData": [
                {
                    "id": "general",
                    "name": "General",
                    "intervals": [                      
                        {
                            "startDate": "2023-02-04",
                            "endDate": "2023-02-05",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-05",
                            "endDate": "2023-02-06",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-11",
                            "endDate": "2023-02-12",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-12",
                            "endDate": "2023-02-13",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-18",
                            "endDate": "2023-02-19",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-19",
                            "endDate": "2023-02-20",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-25",
                            "endDate": "2023-02-26",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-02-26",
                            "endDate": "2023-02-27",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-03-04",
                            "endDate": "2023-03-05",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-03-05",
                            "endDate": "2023-03-06",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-03-11",
                            "endDate": "2023-03-12",
                            "isWorking": false
                        },
                        {
                            "startDate": "2023-03-12",
                            "endDate": "2023-03-13",
                            "isWorking": false
                        },
                       
                        {
                            "startDate": "2026-12-27",
                            "endDate": "2026-12-28",
                            "isWorking": false
                        }
                    ]
                }
            ]
        }

Post by alex.l »

Hi shimnx,

Because tasks will be scheduled after load to be done ASAP, according to constraints provided.
Please see docs: https://bryntum.com/products/gantt/docs/guide/engine/gantt_events_scheduling

All the best,
Alex


Post Reply