圆数x轴Jquery flot图

Mar*_*nry 3 jquery graph flot

我想舍入(0位小数)flot图的x轴上的值.x-axix显示周数.有谁知道这是怎么做到的吗?

http://www.snowcams.eu/snowcondition/saas%20fee/998

jit*_*ter 13

这是您的解决方案(这可以在插件API文档中找到)

$.plot(
    $("#placeholder"),
    [{data:d1, lines:{show: true}, points:{show: true}, label:"Mountain"}],
    {xaxis: {tickSize:1, tickDecimals:0 }}
);
Run Code Online (Sandbox Code Playgroud)