score:2

Accepted answer

I wasn't going to post this question at first because I just found the answer (after searching in the docs for a while) but I figured this could help others.

Simply make sure you add the formatter callback in your labels object:

  yAxis: {
    labels:{
      formatter: function(){
        if(this.value >= 0){
          return this.value;
        }
      }
    }
  }

http://api.highcharts.com/highcharts#yAxis.labels.formatter

score:3

While your solution works, there is a slightly more generic solution you might like if your intent is always to prevent the yAxis having a label at the bottom left:

yAxis: {
    labels: {
        formatter: function() {
            if ( this.isFirst ) { return ''; }
            return this.value;
        }
    }
},

Making use of the isFirst property that Highcharts has on this prevents your reliance on "magic numbers" (similarly, there is an isLast value if you'd like to try that -- though I don't see as much use for it).


Related Query

More Query from same tag