score:2

Accepted answer

When the formatter function is evaluating the value to display, the context has access to the guide-line path element. I was able to hide the guideline by making the following change to the formatter:

formatter: function ()
{
  var y = this.y;
  //Hide the labels for empty pie slices
  if (y == 0)
  {
    //If there is a pie chart label guideline, hide it
     if (this.point.connector)
        $(this.point.connector.element).attr("stroke", "#FFFFFF");
    return "";
  }
  //If the label guideline was previously hidden, show it
  if (this.point.connector)
     $(this.point.connector.element).attr("stroke", "#000000");

  ...
 }

score:0

Make connector width 0.

dataLabels: {
    connectorWidth: 0,
    ...
}

score:2

You can try to use:

 if(this.y == 0)
                            return null    
                        else
                            return this.y

Related Query

More Query from same tag