Add multiple baseline to the chart

Hi Support,

can we add and show multiple baselines for a task.

Thanks,
Rasagb

Hello Rasagb,
Gantt doesn’t have a built-in feature to add baselines. But you can implement it by using the Gantt API and Javascript.
To add a baseline date, you can add a property with the Date value to the task object.
Then you can use the addTaskLayer method that allows displaying any HTML elements in the timeline:
https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html
You don’t need to add several layers for each baseline. Instead, you can create a root element and attach the baselines to it.
Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/5/b8448a6db