DHTMLX / gantt

GPL version of Javascript Gantt Chart
https://dhtmlx.com/docs/products/dhtmlxGantt/
GNU General Public License v2.0
1.44k stars 320 forks source link

support more time interval #118

Open jackjackphp opened 1 month ago

jackjackphp commented 1 month ago

hi, need support seconds

windowshopr commented 1 month ago

...seconds might be a little much, but definitely minutes and hours within each day would be nice so we can use this library for smaller, day to day task tracking as well!

gearcoded commented 1 month ago

@jackjackphp, We have the feature request to add support for the second unit. So, this feature will be added in the future, but I cannot give you any ETA.

For now, you need to implement custom solutions for that.

Here are examples of how it might be implemented: https://snippet.dhtmlx.com/vo2zpi4d https://snippet.dhtmlx.com/y9x52cki


@windowshopr, The hour and minute units are already supported: https://docs.dhtmlx.com/gantt/api__gantt_duration_unit_config.html

You can check how it works in the official samples: https://docs.dhtmlx.com/gantt/samples/?sample=%2703_scales/07_minutes_scale.html%27&filter=%27%27

https://docs.dhtmlx.com/gantt/samples/?sample=%2703_scales/10_working_hours.html%27&filter=%27%27

https://docs.dhtmlx.com/gantt/samples/?sample=%2703_scales/14_scale_zoom_by_wheelmouse.html%27&filter=%27%27