I am using the following snippet to display my chart :
xaxis: {
min: '2012-01-01 00:00:00.0',
max: '2012-04-01 00:00:00.0',
renderer : "$.jqplot.DateAxisRenderer",
rendererOptions : {
"tickRenderer" : "$.jqplot.CanvasAxisTickRenderer"
},
numberTicks: 4,
showTickMarks : false,
tickOptions:{
angle:0,
formatString:'%b %Y'
}
},
Data :[
['2012-01-01 00:00:00.0', 0]
, ['2012-02-01 00:00:00.0', 0]
, ['2012-03-01 00:00:00.0', 0]
, ['2012-04-01 00:00:00.0', 0]
]
Instead of displaying : Jan 2012, Feb 2012, Mar 2012, Apr 2012 it displays : Jan 2012, Jan 2012, Mar 2012, Apr 2012.
On debugging further I found that second point is actually 31-Jan-2012, which on applying format displays as Jan 2012.
How can I ensure that it shows the months properly.
Thanks in advance.