you can prepare your own function which check is negative is or not, then set appropriate ticks. to achive this, you should use tickpositioner


you can set the "floor", this defines the minimum possible value for min. when negative values are added, they will not be visible! (

yaxis: {
    floor: 0

i know this question has been asked a long time ago and this property did not exist at the time. but i just encounter this problem and i think others will be happy to not having to search.


i achieved this by creating a function using setextremes

var setmin = function () {
  var chart = this,
  ex = chart.yaxis[0].getextremes();

  // sets the min value for the chart 
  var minval = 0;

  if (ex.datamin < 0) {
    minval = ex.datamin;

  //set the min and return the values
  chart.yaxis[0].setextremes(minval, null, true, false);

then in your chart, you call it like this:

  chart: {
    events: {
      load: setmin


you can add to your y-axis :

 yaxis: {
            title: {
                text: 'title of the y-axis'
            min: 0 // this sets minimum values of y to 0


the option that you're looking for is called softmin and was introduced in version 5.0.1. the docs describe it as follows:

a soft minimum for the axis. if the series data minimum is greater than this, the axis will stay at this minimum, but if the series data minimum is lower, the axis will flex to show all data.

yaxis: {
    softmin: 0

Related Query

More Query from same tag