Gantt default zoom scale and scroll to current date

Hello Webix Teams,

  1. How can I set zoom scale to “day” ? I try ganttScale.setValue("day"); its working, any other correct way to set default scale ?
  2. For example I have large long range of project, How can I scroll or navigate to current date ?

https://snippet.webix.com/kksf23l2

Thanks.

Hi,
2. here’s how you can scroll to a date Code Snippet this is a basic example, you can add any other means of date selection

Thanks great @kuro that what I need

1 Like

Hi, would you mind sharing why you’re looking for alternative approaches if the current one works well? Are there specific challenges or limitations you’re encountering with the existing method?

1 Like

Hi @NastassiaM

Yes Its working well need triggered combo onChange with delay waiting for gantt rendering

        onInit: (app) => {
          webix.delay(function(){  
          const ganttScale = $$("gantt_scale"); 
          	ganttScale.setValue("day");  
          });  
        },

No problem for me use this way
Thanks.