gantt icon indicating copy to clipboard operation
gantt copied to clipboard

Time axis expansion problem

Open z-h2o opened this issue 1 year ago • 1 comments

How to set the timeline to not automatically expand and only display from the start time to the end time. image As shown in the style above, without automatic extension at both ends

z-h2o avatar Sep 27 '24 03:09 z-h2o

@lzwStore, By default Gantt adds 1 scale unit to the most right and left task dates. If you want to change how it works, you need to manually set the displayed date range by using the gantt.config.start_date and gantt.config.end_date parameters: https://docs.dhtmlx.com/gantt/api__gantt_start_date_config.html

You can check how it works in the following snippet: https://snippet.dhtmlx.com/o66hmfpf

gearcoded avatar Oct 02 '24 05:10 gearcoded