Time line view To span multiple days

In our use case i want the time line mode to run past midnight. Example: a bar opens at 2:00 PM and closes at 2 AM.

Currently i am setting the First_hour and Last_hour which works completely fine when the first hour is less then last hour and within the same day.

Is it possible to set Last_hour in next day?

Current scheduler timeline view.

Thanks in anticipation :slight_smile:

Hi, Lakshman!

The configuration object of the Timeline view can have various properties which you can use to configure your personal Timeline view.
I would advice you to look throw all of them in order to know how you can work with the Timeline method more correctly and comfortable: https://docs.dhtmlx.com/scheduler/api__scheduler_createtimelineview.html.

Answering your question I want to notice that you should use x_start, x_size and x_length properties.

Here is a snippet: http://snippet.dhtmlx.com/7d95757ea.