【问题标题】:bell curve using flot使用浮点数的钟形曲线
【发布时间】:2015-10-21 12:51:23
【问题描述】:

我已经从下面的链接实现了一个钟形曲线: Create Normal Distribution (Bell Curve) chart using FLOT

如何将线条放在贝尔曲线上,如图所示:

【问题讨论】:

    标签: charts flot bell-curve


    【解决方案1】:

    基于您链接的问题中的comment,您可以使用标记来实现此目的(请参阅此fiddle):

    相关代码:

    var markings = [];
    for (var i= -2; i <= 2; i+= 1) {
        markings.push({ xaxis: { from: i, to: i }, yaxis: { from: 0, to: NormalDensityZx(i,0,1) }, color: "#bb0000" });
    }
    

    【讨论】:

    • @Raidri- 它帮助了。这是一个小提琴,可以将特定标记与静止钟形曲线数据点进行比较。 jsfiddle.net/Lsm1086m/1
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-14
    相关资源
    最近更新 更多