Our state of the art Gantt chart


Post by awakeb1 »

Hi Alex,

I removed 3 columns in gantt chart and it is working. They are:

{ type: 'totalslack' },
{ type: 'latestartdate' },
{ type: 'lateenddate' },

Here is my configuration of gantt with 3 columns cause issue. If I remove them the code will work. I also get the same issue when test on bryntum advanced example with this gantt configuration

const gantt = window.gantt = new Gantt({
    project,

dependencyIdField : 'sequenceNumber',

weekStartDay : 1,
startDate    : '2012-08-28',
endDate      : '2012-11-05',
columns      : [
    { type : 'wbs' },
    { type : 'name', width : 250 },
    { type: 'startdate', format: DAY_DATE_FORMAT },
    { type: 'enddate', format: DAY_DATE_FORMAT },
    { type: 'duration' },
    { type: 'totalslack' },
    { type: 'calendar' },
    
    { type : 'percentdone', width : 70 },
    { type : 'resourceassignment', width : 120 },
    {
        type  : 'predecessor',
        width : 112
    },
    {
        type  : 'successor',
        width : 112
    },
    { type : 'schedulingmodecolumn' },
    
    { type : 'percentdone', showCircle : true, text : '%', width : 70 },
    { type : 'constrainttype' },
    { type : 'constraintdate' },
    { type: 'deadlinedate' },
    { type: 'latestartdate' },
    { type: 'lateenddate' },
    { type : 'addnew' }
],

subGridConfigs : {
    locked : {
        flex : 2
    },
    normal : {
        flex : 1
    }
},

columnLines : false,

features : {
    indicators : {
        items : {
            deadline       : true,
            earlyDates     : false,
            lateDates      : false,
            constraintDate : false
        }
    },
    rollups : {
        disabled : true
    },
    progressLine : {
        disabled   : true,
        statusDate : new Date(2019, 1, 10)
    },
    taskContextMenu : {
        // Our items is merged with the provided defaultItems
        // So we add the provided convertToMilestone option.
        items : {
            convertToMilestone : true
        },
        processItems({ taskRecord, items }) {
            if (taskRecord.isMilestone) {
                items.convertToMilestone = false;
            }
        }
    },
    filter         : true,
    dependencyEdit : true,
    timeRanges     : {
        showCurrentTimeLine : true
    },
    labels : {
        left : {
            field  : 'name',
            editor : {
                type : 'textfield'
            }
        }
    }
}
});

Could you help me how to show 3 columns without any impacts?

Thanks.


Post by alex.l »

Thank you for clear steps to reproduce, I was able to repro it, here is a ticket: https://github.com/bryntum/support/issues/3466

There is no quick workaround here, only if you remove totalslack column for now. Please subscribe on ticket updates to be notified when it's ready.

All the best,
Alex


Post by awakeb1 »

I have another issue with calendar night shift 4 days. Could you please help me how to setup calendar correctly with 4 working days per week from Monday to Thursday, 8 hour per day from 22:00 to 6:00.

Below is my configuration but it is not working as my expectation.

{
    "Id": 4,
    "Name": "Night Shift 4 day",
    "DaysPerMonth": 16,
    "DaysPerWeek": 4,
    "HoursPerDay": 8,
    "IsCompanyCalendar": false,
    "UnspecifiedTimeIsWorking": false,
    "Parent": null,
    "Intervals": [
        {
            "Id": 58,
            "RecurrentStartDate": "on Monday at 22:00",
            "RecurrentEndDate": "on Tuesday at 06:00",
            "StartDate": null,
            "EndDate": null,
            "IsWorking": true,
            "Cls": null,
            "PhantomIdForSessionTemp": null
        },
        {
            "Id": 59,
            "RecurrentStartDate": "on Tuesday at 22:00",
            "RecurrentEndDate": "on Wednesday at 06:00",
            "StartDate": null,
            "EndDate": null,
            "IsWorking": true,
            "Cls": null,
            "PhantomIdForSessionTemp": null
        },
        {
            "Id": 60,
            "RecurrentStartDate": "on Wednesday at 22:00",
            "RecurrentEndDate": "on Thursday at 06:00",
            "StartDate": null,
            "EndDate": null,
            "IsWorking": true,
            "Cls": null,
            "PhantomIdForSessionTemp": null
        },
        {
            "Id": 61,
            "RecurrentStartDate": "on Thursday at 22:00",
            "RecurrentEndDate": "on Friday at 06:00",
            "StartDate": null,
            "EndDate": null,
            "IsWorking": true,
            "Cls": null,
            "PhantomIdForSessionTemp": null
        }
    ],
    "leaf": true,
    "children": null,
    "ChildrenRaw": [],
    "Tasks": [],
    "Resources": [],
    "ParentId": null,
    "PhantomParentIdForSessionTemp": null,
    "PhantomIdForSessionTemp": null
}

Please help me correct it.

Thanks


Post by alex.l »

This is an example from our advanced demo with the changes you requested applied. You can basically use a "night shift" one.

"calendars" : {
    "rows" : [
      {
        "id"        : "general",
        "name"      : "General",
        "intervals" : [
          {
            "recurrentStartDate" : "on Sat at 0:00",
            "recurrentEndDate"   : "on Mon at 0:00",
            "isWorking"          : false
          }
        ],
        "expanded" : true,
        "children" : [
          {
            "id"           : "business",
            "name"         : "Business",
            "intervals"    : [
              {
                "recurrentStartDate" : "every weekday at 12:00",
                "recurrentEndDate"   : "every weekday at 13:00",
                "isWorking"          : false
              },
              {
                "recurrentStartDate" : "every weekday at 17:00",
                "recurrentEndDate"   : "every weekday at 08:00",
                "isWorking"          : false
              }
            ]
          },
          {
            "id"           : "night",
            "name"         : "Night shift",
            "intervals"    : [
              {
                "recurrentStartDate" : "every weekday at 6:00",
                "recurrentEndDate"   : "every weekday at 22:00",
                "isWorking"          : false
              },
              {
                "recurrentStartDate" : "on Fri at 00:00",
                "recurrentEndDate"   : "on Mon at 00:00",
                "isWorking"          : false
              }
            ]
          }
        ]
      }
    ]
  },

Please make a new thread for every new question.

All the best,
Alex


Post by awakeb1 »

Thanks


Post Reply