
This method demonstrates the "side label layout" method for positioning the sector labels.
With "side label layout", the sector labels are positioned on the left and right sides of the chart. In contrast, all previous examples use "circular label layout", in which the labels are positioned circularly around the pie.
"Circular label layout" typically 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 perimeter to position the labels.
"Side label layout" has the advantages that the labels will automatically shift up and down to avoid overlapping. By default, the labels are joined to the sectors with join lines.
The label layout method to use is specified with PieChart.setLabelLayout.