cannot make Gantt Marker to work to show 'today'

hi
I have a working Gantt chart, and trying to add a Marker, but the examples dont seem to work.

I added the dhtmlxgantt_marker.js by dragging it into the main part of the page, then

[code] var date_to_str = gantt.date.date_to_str(gantt.config.task_date);
var today = new Date(2015, 3, 5);
gantt.addMarker({
start_date: today,
css: “today”,
text: “Today”,
title: "Today: " + date_to_str(today)
});

        var date_to_str = gantt.date.date_to_str(gantt.config.task_date);

        var id = gantt.addMarker({ start_date: new Date(), css: "today", title: date_to_str(new Date()) });
        setInterval(function () {
            var today = gantt.getMarker(id);
            today.start_date = new Date();
            today.title = date_to_str(today.start_date);
            gantt.updateMarker(id);
        }, 1000 * 60);
        
      [/code]

if I put this before the gantt.init(“gantt_here”);
gantt.parse(tasks);

then my gantt chart goes away, some flaw with no error message, so it works or its blank.

if i put this after then it has no effect. what does it need? how to make it work?

Hi,
please check this demo
docs.dhtmlx.com/gantt/snippet/8ff446bf

ok no difference, does not work. i deleted and re added the .js and .css

there is no gantt chart showing up at all now. i will check for what version is being used??

i solved it. the problem was that I just dropped the folder contents into the project. so deleted those, went into Nuget and installed dhtmlx, then put the references into the .cshtml and its there and the marker shows up

so it was an installation problem

now the data chart is blank and doesnt work…

Please attach some kind of demo where we could reproduce the issue, otherwise it’s not possible to tell what may have gone wrong.

Ok, I apologize, when taking out all of the first Gantt .js references the charts info was lost. I was able to go back into archived versions and get back to where it was. Chart works