score:3

Accepted answer

i don't think it's possible to alter this behavior. instead you need to remove the point all together for the other slices to add up to 100. here is an example that shows the difference between legend-toggle and point remove: jsfiddle

score:1

this feature is now available out of the box as plotoptions.pie.ignorehiddenpoint

 series: [{
    ignorehiddenpoint: true,
    type: 'pie',
    ...
  }]

auto redraw/recalculate pie on legend | highchart & highstock @ jsfiddle

score:2

i think this should be the standard behavior :)

opts.plotoptions.pie.point.events.legenditemclick = function() {
    if (this.visible) {
        this['y_old'] = this.y;
        this.update(0);
    }
    else {
        this.update(this.y_old);
    }
};

now when you click on a legend item the pie chart slice will disappear

if you want to show the percentage (100% without the now missing slice) you have to define your tooltip (or legend) as:

opts.tooltip.formatter = function() {
    var s = '<b>' + this.point.name + '</b>: ' + this.percentage.tofixed(2) + '%';

    return s;
};

Related Query

More Query from same tag