JQuery:JQPlot中的时间间隔
如何为jqplot.CanvasAxisTickRenderer设置x轴上的tickInterval?x轴标签是字符串 我尝试下面的代码,但它不起作用。请帮忙,谢谢JQuery:JQPlot中的时间间隔,jquery,jqplot,Jquery,Jqplot,如何为jqplot.CanvasAxisTickRenderer设置x轴上的tickInterval?x轴标签是字符串 我尝试下面的代码,但它不起作用。请帮忙,谢谢 xaxis: { tickRenderer: $.jqplot.CanvasAxisTickRenderer , tickOptions: { angle: -90, fontSize: '12pt' }, ti
xaxis: {
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: {
angle: -90,
fontSize: '12pt'
},
tickInterval : 10,
renderer: $.jqplot.CategoryAxisRenderer,
ticks: ticks,
label: '<%= chartBy.replace("_", " ").toUpperCase()%>',
labelOptions:{
enableFontSupport:true,
fontFamily:'Verdana',
fontSize: '12pt'
}
xaxis:{
tickRenderer:$.jqplot.CanvasAxisTickRenderer,
选择:{
角度:-90,
字体大小:“12磅”
},
时间间隔:10,
渲染器:$.jqplot.CategoryAxisRenderer,
滴答声:滴答声,
标签:“”,
标签选项:{
enableFontSupport:true,
fontFamily:‘Verdana’,
字体大小:“12磅”
}
属性tickInterval
是一个字符串字段。请尝试如下设置:
xaxis:{
//Other options
tickInterval: '1 day',
//Another options
}
我搜索了其他选项,这些是我测试过的选项(它们有效):
“一天”
其中x是大于1的任何整数“x天”
“一周”
其中x是大于1的任何整数“x周”
“一个月”
其中x是大于1的任何整数“x个月”
'month'
不同于'month'