search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Gantt-Chart: Dotted line for current date

Asked by Bikram Jeet Singh
19 days ago.

Hello,

Is there any way we can have a dotted line for the current date?

Thank you

Answer posted by Dan Letecky [DayPilot]
19 days ago.

You can add a separator to the Gantt chart to highlight the current date/time:
https://doc.daypilot.org/gantt/separators/

The separators are marked with "gantt_default_separator" CSS class - you can use it to make the line dotted:

JavaScript:
dp.separators = [
    {
        date: DayPilot.Date.today(),
        color: "transparent"
    }
];
CSS:
<style>
    .gantt_default_separator {
        border-right: 1px dotted red;
    }
</style>

Comment posted by Bikram Jeet Singh
19 days ago.

Thanks a lot man, was looking for the same

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):