开发者

round number x-axis Jquery flot graph

开发者 https://www.devze.com 2022-12-14 06:49 出处:网络
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中文版

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

精彩评论

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