【发布时间】:2009-12-20 12:29:03
【问题描述】:
我想对浮点图 x 轴上的值进行四舍五入(0 位小数)。 x-axix 显示周数。有人知道怎么做吗?
【问题讨论】:
我想对浮点图 x 轴上的值进行四舍五入(0 位小数)。 x-axix 显示周数。有人知道怎么做吗?
【问题讨论】:
这是您的解决方案(这都可以在插件API Documentation 中找到)
$.plot(
$("#placeholder"),
[{data:d1, lines:{show: true}, points:{show: true}, label:"Mountain"}],
{xaxis: {tickSize:1, tickDecimals:0 }}
);
【讨论】: