我试图在Flot折线图的x轴上显示月份和年份。目前我只是在展示月份。我怎样才能显示年份?
我的代码
xaxis: {
mode: 'time',
axisLabel: 'Date of Consent',
min: (new Date(2013, 08, 1)).getTime(),
max: (new Date(2014, 07, 31)).getTime(),
tickSize: [1, "month"],
monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
}