Gantt showing multi segments in one single row

Hello,
I am trying to create a sample where I want to show multiple life cycles of each project/task in one row itself. Is it possible? Can you please provide some sample?

Also, Is it possible to keep multiple milestones of tasks on top of each bars?
image

Thanks,
Surbhi

Hello,

Can anyone provide answers? It will help with deciding the purchases.

Hello @Surbhi_Agarwal,

Regarding this point:

I am trying to create a sample where I want to show multiple life cycles of each project/task in one row itself. Is it possible? Can you please provide some sample?

Yes, that’s possible with baselines functionality, that allows to create additional elements on the timeline area of gantt chart. You can read about it by the following links:
https://docs.dhtmlx.com/gantt/desktop__inbuilt_baselines.html
https://docs.dhtmlx.com/gantt/api__gantt_baselines_config.html

Here is an example:
https://snippet.dhtmlx.com/5dkvwjsz?mode=wide

In case if baselines flexibility won’t be enough to your purposes, you also can use the addTaskLayer method, that also allows creating additional elements:
https://docs.dhtmlx.com/gantt/desktop__baselines.html

API:

Regarding this point:

Also, Is it possible to keep multiple milestones of tasks on top of each bars?

Yes, it’s possible to define multiple milestones for each task.
It can be done with built-in milestones:
https://docs.dhtmlx.com/gantt/desktop__milestones.html

Or with customized baselines(by adding additional CSS class to baseline):
https://snippet.dhtmlx.com/ycm5ilf9

Likely it will be the best option for your case.

Or you can create them with addTaskLayer method, like follows:
https://snippet.dhtmlx.com/vh104dmg

So you can choose the most preferable approach.

Kind regards,

Hi Siarhei,

Thanks for the update. I think the solutions you have provided mainly works if I have PRO edition license. Currently, I only have standard license. If everything works with standard license, then will decide to go to PRO edition. Can you please help?

Thanks,
Surbhi

Hello @Surbhi_Agarwal,

As implementing the described functionality will require PRO features - you can try all PRO features with the Trial version of Gantt, you can get it by the following link:

After downloading, you will be able to freely use it instead of GPL version.

Kind regards,

1 Like