Hi there, I’m trying to achieve second scale with months group in quarter.
Below is an example for each month and want to change it to quarterly. Please help!!!
scheduler.locale.labels.timeline_tab = “Timeline Day”;
scheduler.locale.labels.mTimeline_tab = “Timeline Month”;
scheduler.locale.labels.section_custom=“Section”;
scheduler.config.xml_date="%Y-%m-%d %h:%i";
var sections=[
{key:1, label:“Res1”},
{key:2, label:“Res2”}
];
scheduler.createTimelineView({
name: “timeline”,
x_unit: “week”,
x_date: “%j %D”,
x_step: 1,
x_size: 26,
x_start: 0,
x_length: 25,
y_unit:
[{key:1, label:“Room 1”},
{key:2, label:“Room 2”},
{key:3, label:“Room 3”}],
y_property:“room_id”,
dx: 75, // sets width of resource column
render:“bar”,
second_scale:{
x_unit: “month”,
x_date: “%M”
}
});
// set schedule to current day
var d = new Date();
var year1 = d.getFullYear();
var month1 = d.getMonth();
var day1 = d.getDate();
// month timeline
//scheduler.config.m_tab(‘scheduler_here’, new Date(year1, month1, day1), “mTimeline”);
//===============
//Data loading
//===============
scheduler.config.lightbox.sections=[
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},
{name:“custom”, height:23, type:“select”, options:sections, map_to:“section_id” },
{name:“time”, height:72, type:“time”, map_to:“auto”}
];
scheduler.init(‘scheduler_here’,new Date(2012,08,17),“timeline”);
scheduler.parse([
{text:“Conference”, start_date:“2012-09-17 12:00”, end_date:“2012-09-17 14:00”,
room_id:“1”},
{text:“Meeting”, start_date:“2012-09-17 09:00”, end_date:“2012-09-17 12:00”,
room_id:“1”},
{text:“Conference”, start_date:“2012-09-17 14:00”, end_date:“2012-09-17 16:00”,
room_id:“1”}
],“json”);