score:2

Accepted answer

Setting colorSlices() as the load function worked just fine for me.

http://jsfiddle.net/6PbbR/274/

events: {
    redraw: function(event) {
        colorSlices();
    },
    load: colorSlices
}

You could also use this.point.x in the formatter to assign the class. I believe that would accomplish the same thing and alleviate the need for the events.

http://jsfiddle.net/6PbbR/280/

dataLabels: {
    formatter: function() {
        return '<span class="slice slice-'+(this.point.x+1)+'">' + 
        Highcharts.numberFormat(this.percentage,1,".",",") +' %</span>';
    }
}

Related Articles