Hello I’m developing a web based gantt chart and I would liketo add a baseline for the timeline.
After adding,
gantt.addTaskLayer(function draw_planned(task) {
//code here
});
and running the code. It shows
Unhandled Rejection (TypeError): dhtmlx_gantt__WEBPACK_IMPORTED_MODULE_8__.gantt.addTaskLayer is not a function
Gantt.componentDidMount
src/components/Gantt/Gantt.js:173
170 | }); 171 | } 172 | > 173 | gantt.addTaskLayer(function draw_planned(task) { | ^ 174 | var sizes = gantt.getTaskPosition(task, task.estimatedStart, task.estimatedEnd); 175 | var el = document.createElement('div'); 176 | el.className = 'baseline';