title: Highcharts: Y axis label formatter
body: <p>I have this y axis labels formatter</p>
  
  <pre><code>        yAxis: {
              title: {
                  text: null
              },
              labels: {
                  formatter: function(){
                      return (Math.abs(this.value) / 1000000) + 'M';
                  }
              }
          },
  </code></pre>
  
  <p>but I need the formater to check if the values is more than million 1000000 then format it accordingly..
  I've tried this but it didn't work properly</p>
  
  <pre><code>        yAxis: {
              title: {
                  text: null
              },
              labels: {
                  formatter: function(){
                      if (this.value &gt; 999999) {
                      return (Math.abs(this.value) / 1000000) + 'M';};
                  }
              }
          },
  </code></pre>
  
  <p>it displayed the labels on one side only..
  I'm using the Stacked bar chart pyramid</p>
  
  <p>here is it on JSFiddle</p>
  
  <p><a href="http://jsfiddle.net/chGkK/" rel="nofollow noreferrer">http://jsfiddle.net/chGkK/</a></p>