Show some specefic number on gauge highcharts axis labels

highcharts

Solution

Finally i solved this. here is what i add to `yAxis` :

  rotation:'auto',      
  labels: {
      distance: 20,
      formatter: function() {
          if(this.value == '0' ||this.value == '3' ||this.value == '7' ||this.value == '14') 
              return this.value;
      }
  },
  tickInterval: 1,
  minorTickLength:0,

Here is the Fiddle

Problem

I want to show some number on gauge data label like this: I try to use `category` and `formatter` option in `yAxis` like this but faild! ``` categories: ['0','3','7','14'], ``` and ``` labels: { formatter: function() { if(this.value == '0' ||this.value == '3' ||this.value == '7' ||this.value == '14') return this.value; } }, ``` What is wrong with this method? also any other solution will be appreciated . Here is a fiddle i am going to work on.

Original source