
This example illustrates side label layout for pie charts, in which the sector labels are positioned on the left and right sides of the chart. The alternative is circular label layout, in which the sector labels are positioned circularly around the pie.
Circular label layout usually uses less space and is the default layout method. However, if the pie chart contains a lot of small sectors, the labels may overlap with each others. It is because there may be insufficient space on the pie perimeter to position the labels.
Side label layout has the advantages that the labels will move up and down automatically to avoid overlapping.
The label layout method to use is determined by using PieChart.setLabelLayout.