On the backend of our application we would like to pass in a list of data and let the Gantt chart schedule it for us and then send back the scheduled JSON. Is there anyway to do this is node.js without rendering the actual Gantt chart?
Thank you!
const ganttObj = new gantt.Gantt({
dataSource: dataManager,
renderBaseline: true,
dataStateChange,
taskFields: {
id: 'taskId',
name: 'taskName',
startDate: 'startDate',
endDate: 'endDate',
duration: 'duration',
expandState: 'isExpanded',
child: 'children',
dependency: 'predecessor',
},
timelineSettings: {
timelineViewMode: 'Month',
},
treeColumnIndex: 1,
},
});
console.log(ganttObj.flatData)
Essentially this in node.js