var HalfYear = {
displayDateFormat: 'Y-m-d',
shiftIncrement: 1,
shiftUnit: "YEAR",
timeColumnWidth: 60,
timeResolution: {
unit: "MONTH",
increment: 1
},
headerConfig: {
middle: {
unit: "QUARTER",
increment: 2,
renderer: function(start, end, headerConfig, index) {
var quarter = Math.floor(start.getMonth() / 6) + 1;
return Ext.String.format('Q{0} ', quarter);
}
},
top: {
unit: "YEAR",
renderer: function(start, end, cfg) {
return Ext.String.format('{0} ', start.getFullYear());
}
}
}
};
var currLevel = Math.floor(this.getCurrentZoomLevelIndex()),
// increment to get next zoom level (-1 for zoom out and +1 - for zoom in)
inc = width / ticks.length < this.zoomLevels[currLevel].width ? -1 : 1,
When I debug the code then currLevel is -1.
How to set value for zoom in the above custom view?