Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highcharts - Negative values, set y-axis to greater than 0?

I'm using Highcharts and I'm trying to create a column chart where there are negative values, like their example: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-negative/

However, I'm trying to figure out how to set the baseline 60. So that the x and y intersect at -40 and anything below 65 is a negative data point. I've been searching, but so far have only found threads that explain how to set min and max...

like image 248
user1154488 Avatar asked Dec 01 '22 23:12

user1154488


1 Answers

You're probably looking for the threshold option.

plotOptions: {
    series: {
        threshold: 100
    }
}

Demo

like image 81
Torstein Hønsi Avatar answered Jan 17 '23 19:01

Torstein Hønsi