How can I addMarker to same row of task?

I try two marker, but i want marker after with color blue as picture will render in above task A9823, in picture i hardcode it by margin-top, it possible to flexible render marker with height equal height of task?

Hi @Vu_Tr_n,
as far as I understand, you want to add your custom element above the task using addMarker method.

Regarding your question:

it possible to flexible render marker with height equal height of task?

the better way to do this is using addTaskLayer method:

https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html

This method consists of two functions: render, where you set parameters of your element, and getRectangle for setting coordinates of this element.

Please, look at how it works in the demo:
http://snippet.dhtmlx.com/5/e54a01909

1 Like