When I use zoom feature in Gantt, I select zoom by Week, can I custom change week date range to week number ?
01 Jan - 07 Jan --change to–> Week 01
08 Jan - 14 Jan → Week 02
15 Jan - 21 Jan → Week 03
22 Jan - 28 Jan → Week 04
https://snippet.webix.com/76k7f5w1
and so on…
Hello finzaiko
To change week date range to week number in the format function of the scales property you can change the date to the format you need with the help of getISOWeek method:
{
unit: "week",
format: function(start, end) {
const weekNumber = webix.Date.getISOWeek(start)
return "Week " + weekNumber;
},
},
Please check the example: Code Snippet
Great, Thanks for help @Natalia_Shilova
Its working