开发者

round number x-axis Jquery flot graph

I would like to round (0 decimals) the values on the x-axis of a flot graph. The x-axix show week numbers. Does anyone know how to do that?

开发者_StackOverflow中文版

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


Here is your solution (this can all be found in the plugin API Documentation)

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜