【问题标题】:Graph showing value even if the value is specified to 0 using flot即使使用 flot 将值指定为 0,图形也会显示值
【发布时间】:2012-03-20 11:32:34
【问题描述】:

这是我的小提琴代码http://jsfiddle.net/coderslay/WnC9B/44/

它正在成功绘制图形。我面临的问题是,即使我将其指定为零,它也会在红线下方显示两个(图中的图例之一)的值。为什么会这样?

【问题讨论】:

    标签: javascript flot bar-chart


    【解决方案1】:

    在bars选项下,将lineWidth设置为0:

       bars : {
            fill : 1,
            show: true,
            barWidth: 0.7,
            lineWidth: 0
        }
    

    【讨论】:

    • 真棒马克...你是我的救星:D
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多