正如標題所示。看看下面的屏幕截圖,看看我的意思。版本是0.9.7r635。有任何想法嗎?jqPlot DateAxisRenderer tickInterval of「1 month」not working properly
有一個年的數據,也就是對每一天的陰謀。以下是一個示例:
[[[「01-01-2012」,0],[「01-02-2012」,0],[「01-03-2012」,0],... ]]
這裏是JavaScript:
$.jqplot('jqplot', chartData, {
seriesDefaults: {
color: '#09c',
showMarker: false,
rendererOptions: {
smooth: true
}
},
axes: {
xaxis: {
pad: 0,
renderer: $.jqplot.DateAxisRenderer,
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: {
angle: -90
},
tickInterval: ('year' == duration) ? '1 month' : '1 day'
},
yaxis: {
min: 0,
tickOptions: {
formatString: '%d',
}
}
}
});
在這種情況下,tickInterval被設置爲「1個月。
能否請您爲我們提供的代碼你的情節。 – 2012-02-23 21:03:14
以上被編輯的內容... – 2012-02-23 21:17:56
我已經贊同DateAxisRenderer的一組類似問題。我認爲這可能和我的一樣。請參閱我的答案類似的問題http://stackoverflow.com/a/10233111/613495希望它可以幫助你。 – Boro 2012-04-19 17:18:12