Our state of the art Gantt chart


Post by shimnx »

I set constraintDate earlier than StarteDate, but my Total Slack is still 0

{
            "eventsData": [
                {
                    "id": "3a03aace-42bf-eea2-2b5b-8647e310fa7c",
                    "parentId": null,
                    "name": "New task3",
                    "percentDone": 0,
                    "startDate": "2022-06-01",
                    "rollUp": null,
                    "duration": 3,
                    "endDate": "2022-06-04",
                    "showInTimeline": null,
                    "baseLines": [],
                    "children": null,
                    "PhantomId": null,
                    "expanded": null,
                    "note": null,
                    "draggable": true,
                    "resizable": true,
                    "constraintDate": "2022-05-20",
                    "constraintType": "startnoearlierthan",
                    "durationUnit": "day",
                    "deadLineDate": null,
                    "effort": 24,
                    "effortDriven": false,
                    "effortUnit": "hour",
                    "inactive": null,
                    "manuallyScheduled": false,
                    "schedulingMode": "Normal",
                    "slackUnit": 'hour',
                    "cls": "",
                    "iconCls": null,
                    "style": null,
                    "taskIconCls": null,
                    "parentIndex": 4
                }
            ],
            "dependenciesData": [

        ],
        "resourcesData": [

            {
                "id": "28008475",
                "name": "Zhu, Yongjun",
                "image": "28008475.jpg"
            },
            {
                "id": "28035212",
                "name": "He, Yang",
                "image": "28035212.jpg"
            }
        ],
        "assignmentsData": [
            {
                "id": "3a0395be-96bb-0139-14b3-f698ea436d0f",
                "eventId": "3a0395be-96bb-0139-14b3-f698ea436d0f",
                "resourceId": "28028119"
            }
        ],
        "calendarsData": [],
        "projectData": {
            "calendar": "general",
            "startDate": "0001-01-01T00:00:00",
            "hoursPerDay": 24,
            "daysPerWeek": 5,
            "daysPerMonth": 20
        }
    }

Post by alex.l »

I set constraintDate earlier than StarteDate, but my Total Slack is still 0

That is correct behaviour. Please read docs: https://bryntum.com/docs/gantt/guide/engine/gantt_events_scheduling

All the best,
Alex


Post Reply