We are displaying dynamic data on our site. The user can select different types of time periods such as monthly, quarterly, annual, decennial, etc. Our issue comes in trying
You can use your own tickPositioner always, take a look: http://jsfiddle.net/yHmrZ/4/
And code for tickPositioner and formatter:
labels: {
formatter: function () {
var s = "",
d = new Date(this.value),
q = Math.floor((d.getMonth() + 3) / 3); //get quarter
s = "Q" + q + " " + d.getFullYear();
return s;
}
},
tickPositioner: function(min, max){
var axis = this.axis,
act = min,
ticks = [];
while( act < max ){
ticks.push(act);
act = act + (90 * 24 * 3600 * 1000); //three months
}
return ticks;
},