How do we use multiple calendar where one department works 8 hrs/day for 6 days in a week and other department works 18 hours/day for 7 days a week. I was able to assign these calendar department wise. However when I use worktime off CSS, it shows Sat and Sunday as worktime-off and so it excludes scheduling any task on Saturday and Sunday. In zoom duration formatter I’m setting hoursPerDay = 18 and daysPerMonth =30.
on time scale (zoom and timeline), hours are displayed with step of 3, which works fine. However if step is bumped up to 6 or 9 hrs, it doen’t work as expected. FYI. I’m using duration in Hours with step = 1
Can you please help me on how to resolve these issues.
Thanks in advance for all your help
Hello,
When you use the step parameter, Gantt will draw a scale that will skip a specific amount of hours. It should work correctly for the 3 and 6 step values, but the scale should start at 00. In your case, it starts at a different hour. Because of that, Gantt adds 6 hours to each hour cell, so, it is no longer matching the day scale. You need to disable the scale_offset_minimal parameter to make the scale start at 00:00, then it will display the hour scale as expected: http://snippet.dhtmlx.com/5/2ca235db9
The highlight of the timeline cells may or may not indicate actual non-working time. That completely depends on the logic and configuration. And the highlight itself doesn’t affect auto-scheduling and other settings.
As I don’t see your code, it is hard for me to suggest if you configured it correctly or there is something wrong.
Please, add your configuration in the following snippet and make sure that the issue is reproduced there: https://snippet.dhtmlx.com/38ee1b370
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.
Thanks Ramil. First issue is resolved.
For second issue It seems duration calculation is working but off_time highlight is not working as expected.
using below code to add calendar.