How to change the timeline dynamically

Hi.
There is posible to change the start and end date viewed in the chart after the gantt.init.

i.e. I’d like to view only the current week, or maybe two weeks, etc.

Hello César,
You can specify the displayed date range with the gantt.config.start_date and gantt.config.end_date parameters:
https://docs.dhtmlx.com/gantt/api__gantt_start_date_config.html
Here is an example:
https://snippet.dhtmlx.com/o66hmfpf

1 Like