Will Gantt timeline scale to seconds?

I only found someone previously asking about scaling to milliseconds…
is there a way to get a seconds scale?

thanks!

-pete

Hello Pete,
The minimal scale_unit is minute, but you can create custom scale units:
https://docs.dhtmlx.com/gantt/desktop__configuring_time_scale.html#customtimeunits
However, the minimal duration_unit is also minute, so Gantt might not work correctly with the lower units, so you will need to add some code to fix that.
The following examples might help you create your solution.

second scale:
http://snippet.dhtmlx.com/5/9431f09cc
second scale + second duration unit:
http://snippet.dhtmlx.com/6ad689c75

The dev team will add the second scale in the future, but I cannot give you any ETA.

Brilliant!
Almost exactly what i need right now.
I assume the “Start Time” column can contain the timestamp with seconds as well?
where is that done?

Really looking forward to the future release…
thank you !!!

-pete

Hello Pete,

I assume the “Start Time” column can contain the timestamp with seconds as well?
where is that done?

You can do that by modifying the date_grid parameter:

gantt.config.date_grid = "%Y-%m-%d %H:%i:%s";

https://docs.dhtmlx.com/gantt/api__gantt_date_grid_config.html

Here is the updated snippet:
http://snippet.dhtmlx.com/5/575877bba