Built-in baselines left and right side text

Prior to version 9 of Gantt i had to built custom solution for baselines where i could place some text on the left/right side of the baseline.

Since version 9 there is a built-in solution for rendering baselines however i am not sure i could find a way to place custom elements (texts) ot the left/right side of the baselines.

Could you please provide some demo how this can be archived?

Thanks in advance.

Hello Nikolai,
You can add text using the addTaskLayer method:
https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html

Unfortunately, I don’t have a ready-made example, but you can check the general approach in this snippet:

This is a bit of overkill.

Shouldn’t it be similar to how we add left and right side content for the tasks?

Hello Nikolai,

I’ve added a request for this feature in the development tracker. It might be added later, but there’s no guarantee or specific timeline for it.