Our state of the art Gantt chart


Post by foursite »

Hi,

Thank you in advance , We have a project and when we load it it in gantt and criticalPath feature is enabled it does not loads throwing a js error , and we can not find what is wrong in our data , so i was hoping if you can point out anything ?

this is the payload i used at demo https://bryntum.com/products/gantt/examples/basic/

new Gantt({
   appendTo: 'container',
   "dependencyIdField": "wbsCode",
   "project": {
      "dependencyIdField": "id",
      "transport": { 
         "load": {
            "url": "https://backend.worksavi.com/test2.json",
            "requestConfig": {
               "headers": {
                  "Accept": "application/json",
               },
               "fetchOptions": {
                  "credentials": "omit"
               }
            }
         }
      },
        "autoLoad": true,
      "expanded": true,
   },
   "columns": [
      {
         "name": "wbs",
         "type": "wbs",
         "editor": false,
         "field": "wbsCode",
         "parentIndex": 0
   },
      {
         "name": "name",
         "type": "name",
         "parentIndex": 1
   },
      {
         "name": "fullDuration",
         "type": "duration",
         "parentIndex": 2
   },
      {
         "name": "startDate",
         "type": "startdate",
         "format": "DD/MM/YYYY",
         "parentIndex": 3
   },
      {
         "name": "endDate",
         "type": "enddate",
         "format": "DD/MM/YYYY",
         "parentIndex": 4
   },
      {
         "name": "percentDone",
         "type": "percentdone",
         "parentIndex": 5
   },
      {
         "type": "addnew"
   }
   ],
 
   "features": {
     "criticalPaths": {
         "disabled": false
      }    }
});
Attachments
Screenshot 2023-03-20 at 14.12.18.png
Screenshot 2023-03-20 at 14.12.18.png (108.71 KiB) Viewed 96 times

Post by tasnim »

Hi,

Thanks for your detailed report. That's a bug. We'll investigate it. Here is the ticket to track progress https://github.com/bryntum/support/issues/6406

Good Luck :),
Tasnim


Post Reply