Zoom out scale issue

In my zoom-out operation I have custom logic to calculate custom step-size, as per largest available task.

When I zoom-out on my time-scale I can see only two values 0 and LARGEST-TIME-VALUE of task.
(for e.g 0 and 33) Which is difficult to identify duration of other tasks.

After zoom-out operation I want scale to be display with interval of 1-second.
Is it possible to modify existing scale after zoom-out operation?
OR is there any way to implement it, like sub-scale.
(My first priority would be go with modify existing scale)

Hello Dhananjay,
Gantt doesn’t have the second unit and scale. The dev team will add it in the future, but I cannot give you any ETA.

For now, you need to create a custom time unit:
https://docs.dhtmlx.com/gantt/desktop__configuring_time_scale.html#customtimeunits

And as Gantt rounds the dates to the nearest minute, you will need to restore the seconds after you update tasks.

Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/5/e7bb6d443

When you change the zoom level, you switch between the settings in the zoom configuration. So, there is no need to modify the scale after you change the zoom level. Instead, it is better to modify the scale configuration in the zoom settings:


Here is an example with the second scale in the zoom config:
https://snippet.dhtmlx.com/6g6qd6h0