change x_date to string and counter

hello,
I want to change increment variable into x_date ;

	scheduler.createTimelineView({
			
				name:	"timeline",
				x_unit:	"minute",
				x_date:	" Seance k ", // counter k
				x_step:	90,
				x_size: 6,
				x_start: 6,
				y_unit:	sections,
				y_property:	"section_id",				
				render:"bar",
				event_dy: "full"
				
	
			});

seance 1
seance 2
seance 3
seance 4

after createTimelineView, try to use a code like next

scheduler.templates.timeline_scale_date = function(time){ var i = Math.round(time.getMinutes() / 90); return "Section "+i; }

the actual math may need to be adjusted

thanks,
the new code is :

		        var j=0;
			scheduler.templates.timeline_scale_date = function(time){
				 j++;
				 return "Seance "+j;
			}

:wink: