Hiding labels and ticks for small pie slices

This demo shows how we can use an adapter to automatically hide labels and ticks of small pie chart slices.

Relevant code

series.labels.template.adapters.add("forceHidden", forceHidden);
series.ticks.template.adapters.add("forceHidden", forceHidden);

function forceHidden(hidden, target) {
  return target.dataItem.get("valuePercentTotal") < 5;
}
series.labels.template.adapters.add("forceHidden", forceHidden);
series.ticks.template.adapters.add("forceHidden", forceHidden);

function forceHidden(hidden, target) {
  return target.dataItem.get("valuePercentTotal") < 5;
}

Demo

See the Pen
Hiding labels and ticks for small pie slices
by amCharts team (@amcharts)
on CodePen.0