2

I have stacked areas where one is below zero. My problem is that on the graph there are empty spaces Empty spaces

My series values:

series: [{
                fillColor: '#FF3F3F',
                name: 'Alarm',
                data: [500, 500, 500, 500, 500, 500, 500]
            },
{
                fillColor: '#FFFF14',
                name: 'Middle',
                data: [100, 400, 150, 150, 200, 200, 250]
            }, 
            {
                fillColor: '#78C43A',
                name: 'Target',             
                data: [-300, 100, 150, -150, 200, -200, 250]
            },...

By the way - how to fill the bottom of chart with green area (and analogously red area till y axis max)?

5

1 Answer 1

1

with latest highcharts (3.0+), this issue can be solved. the gap has come because the threshold for the area chart is zero. change the threshold to the least value in the chart and try.

you can set threshold at

plotOptions: {
areac: {
threshold: -5//i've take -5 as example
}
}

this is what you want I guess

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.