【问题标题】:round number x-axis Jquery flot graph整数 x 轴 Jquery 浮点图
【发布时间】:2009-12-20 12:29:03
【问题描述】:

我想对浮点图 x 轴上的值进行四舍五入(0 位小数)。 x-axix 显示周数。有人知道怎么做吗?

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

【问题讨论】:

    标签: jquery graph flot


    【解决方案1】:

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

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

    【讨论】:

    • 你成就了我的一天
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-11
    • 2021-01-13
    • 1970-01-01
    • 2020-08-18
    相关资源
    最近更新 更多