Scheduler Back/Forth Issue

Hey guys,

I have a problem with the scheduler. My code (below). The problem is that if I set 24 as x_length one day is skipped if I want to go back or forth.

The scheduler is configured to display for each day a second scale with 120 minutes, so 2 hours from 00:00 to 22:00 (00:00, 02:00, 04:00, …)

If I set x_length to 13 then it’s nearly working but: It skips some hours. The last is 20:00. 22:00 is missing. If I increase x_length I get less instead of more. 12 is working perfectly and goes back exactly one day. 24 that should work isn’t working. Then he skips one whole day from (00:00 to 22:00).

x_step is set to 120
x_size is set to 24

I hope you guys can help.

scheduler.createTimelineView({ name:"timeline", x_unit:"minute", //measuring unit of the X-Axis.(minute,hour) x_date:"%H:%i", //date format of the X-Axis x_step:set_x_step, //X-Axis step in 'x_unit's x_size:set_x_size, //X-Axis length specified as the total number of 'x_step's x_start:0, //X-Axis offset in 'x_unit's x_length:24,//set_x_length, //number of 'x_step's that will be scrolled at a time //13 = 2 Tage, zweiter Tag bis 20 Uhr y_unit: sections, //sections of the view (titles of Y-Axis) y_property:"section_id", //mapped data property render:"bar", //view mode event_dy:"full", //Anzeigehöhe second_scale:{ x_unit: "day", // the measuring unit of the axis (by default, 'minute') x_date: "%F %d" //the date format of the axis ("July 01") } });

Hi,
‘x_length:24’ sets the scroll to 2 days per step, after a quick check it seems working as expected - dates are switched sequentially , no dates skipped
video:
screencast.com/t/FASLBgaAhV
demo:
docs.dhtmlx.com/scheduler/snippet/3e4ea3e6

If you set x_length:12 - it will scroll by 1 day, also without noticable issues.
Does it works differently in your case?

Thanks for the answer but it’s weird. Here is skips first one day, then more and more days. But I’m not using the latest version. I’ll check it, thanks for help :slight_smile: