Label milestone


#1

Hi,

I have a question please, is it possible to add a text in the milestone? (not right or left, in the center) like this:
image
Thanks!


#2

Hello Sara,
There is no built-in feature to do that, as the milestone was designed to be a rotated rectangle that doesn’t have task text.
You can try adding a custom element that contains task text each time rendering happens. However, you need to control that after various events. Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/6ed9e0c9e
Otherwise, you can try creating a custom element:
https://docs.dhtmlx.com/gantt/desktop__task_types.html#creatingacustomtype


#3

Thank you very much,
Best solution (for me) is to add a custom element (thanks to your exemple),