score:7

Accepted answer

You can do that by getting the series object from the formatter callback function.

stackLabels: {
              style: {
                         color: 'black'
                     },
                     enabled: true,
                     formatter: function() {   
                        return (this.axis.series[1].yData[this.x] / this.total * 100).toPrecision(2) + '%';                                
                    }
            }

Here is the jsfiddle for your case:

http://jsfiddle.net/prJjY/183/


Related Query

More Query from same tag