Solution 1 :

It is hard to suggest what might be wrong. Please send a ready Angular demo.

Here is an Angular demo where it works correctly:

Problem :

I am trying to use marker plugin in my dhtmlxGantt used in angular poject using documentation in I am trying to display a vertical line for the current date in gantt. But the marker plugin doesn’t work.

I did add the below code in ngOnInit in my angular component

      marker: true 

and then added a marker

var today = new Date("04-04-2018");

  var markerId = gantt.addMarker({      
      start_date: today, 
      text: "todaynew",

and have defined the todaynew in .css file as below

    background: #ffb121;

But the vertial marker for the current day doesn’t appear