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
1 year ago.

Hello,

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

Thank you

Answer posted by Dan Letecky [DayPilot]
1 year 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
1 year ago.

Thanks a lot man, was looking for the same

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.