2012-12-18 35 views
1

每当我在Y轴上将最小值设置为0时,我的刻度将更改为十进制数。上面的代码显示数字等80,90,100上的Y轴:Jqplot yxes最小值

yaxis:{ 
    autoscale: true, 
    formatString: "%d" 
} 

min选项被设置的蜱被显示像80.00,90.00,100.00。

yaxis:{ 
    autoscale: true, 
    min: 0, 
    formatString: "%d" 
} 

如何避免在添加min选项时更改字符串格式?

回答

0

尝试增加

tickInterval: x 

例如:

yaxis:{ 
autoscale: true, 
min: 0, 
formatString: "%d" 
tickInterval: 10 
}