【问题标题】:Jqplot yxes min valueJqplot yxes 最小值
【发布时间】:2012-12-18 13:55:05
【问题描述】:

每当我在 Y 轴上将最小值设置为 0 时,我的刻度都会变为十进制数字。上述代码在 Y 轴上显示 80、90、100 等数字:

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

当设置min 选项时,刻度会显示为 80.00、90.00、100.00。

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

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

【问题讨论】:

    标签: string-formatting jqplot format-string


    【解决方案1】:

    尝试添加

    tickInterval: x
    

    例如:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-30
      • 1970-01-01
      • 1970-01-01
      • 2012-11-05
      • 1970-01-01
      • 1970-01-01
      • 2018-04-25
      • 1970-01-01
      相关资源
      最近更新 更多