【问题标题】:how can i create threshold chart with highcharts如何使用 highcharts 创建阈值图
【发布时间】:2014-01-28 20:22:20
【问题描述】:

我需要创建红色和绿色区域以及线条系列。 http://esbolsa.com/blog/wp-content/uploads/2012/12/Commodity-Channel-Index-Fortaleza.png

我正在使用以下代码,它可以很好地显示红色(低于-100)。我如何指定另一个阈值(+100)?

chart.addSeries({
            name: name + "_series",
            id: name + "_series",
            type: 'area',
            data: cciData,
            yAxis: name + '_axis',
            showInLegend: false,
            color: '#2f7ed8',
            negativeColor:'red',
            threshold:-100
        },false);

【问题讨论】:

    标签: highcharts area


    【解决方案1】:

    我见过的唯一方法是创建 2 个相同的系列,除了 thresholdsnegativeColor

    【讨论】:

    • 什么是“中线”?
    【解决方案2】:

    不幸的是,在 Highcharts 中您只能设置单个阈值,但您可以使用其他系列,即绿色区域。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-11
      • 1970-01-01
      • 2015-09-17
      • 1970-01-01
      • 2013-02-12
      • 1970-01-01
      • 1970-01-01
      • 2014-04-29
      相关资源
      最近更新 更多