Question

i need to create red and green area along with line series. http://esbolsa.com/blog/wp-content/uploads/2012/12/Commodity-Channel-Index-Fortaleza.png

i am using following code, which works fine for showing red(below -100).how can i specify another threshold(+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);
Était-ce utile?

La solution 2

Unfortunately in Highcharts you can set only single threshold, but you can use additional serie i.e with green areas.

Autres conseils

The only way I have seen to do this is to create 2 series that are identical except for the thresholds and negativeColor.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top