最新的highcharts版本中的阈值怪异

时间:2015-02-26 18:46:12

标签: highcharts

以下是使用4.0.4的示例jsfiddle:

http://jsfiddle.net/drmrbrewer/ge2soL8r/3/

以上相关内容是:

    series: [{
        name: 'Spline',
        type: 'spline',
        data: [{"x":1424998800000,"y":-8.4,"index":0,"value":-8.3},{"x":1425009600000,"y":-9,"index":1,"value":-9.1},{"x":1425020400000,"y":-8.1,"index":2,"value":-8.1},{"x":1425031200000,"y":-6.6,"index":3,"value":-6.6},{"x":1425042000000,"y":-5,"index":4,"value":-4.9},{"x":1425052800000,"y":-4.4,"index":5,"value":-4.3},{"x":1425063600000,"y":-5,"index":6,"value":-5},{"x":1425074400000,"y":-5.2,"index":7,"value":-5.2},{"x":1425085200000,"y":-5.1,"index":8,"value":-5.1},{"x":1425096000000,"y":-4.9,"index":9,"value":-4.9},{"x":1425106800000,"y":-4.5,"index":10,"value":-4.5},{"x":1425117600000,"y":-4,"index":11,"value":-4},{"x":1425128400000,"y":-3.7,"index":12,"value":-3.7},{"x":1425139200000,"y":-3.4,"index":13,"value":-3.4},{"x":1425150000000,"y":-3.5,"index":14,"value":-3.5},{"x":1425160800000,"y":-3.3,"index":15,"value":-3.2},{"x":1425171600000,"y":-4.4,"index":16,"value":-4.5}],
        color: '#FF0000',
        negativeColor: '#0088FF',
        threshold: 0
    }]

这是完全相同的例子,只使用4.1.1:

http://jsfiddle.net/drmrbrewer/ge2soL8r/2/

是什么给出了?

感谢。

1 个答案:

答案 0 :(得分:2)

答案是,这是高图4.1.1中的一个错误,几乎立即得到修复:https://github.com/highslide-software/highcharts.com/issues/3898。可以链接到github主分支(参见jsfiddle.net/ge2soL8r/4)或者我想等到4.1.2。