<p>Data labels can be automatically added to pie chart and donut chart slices as well as funnel chart areas. what labels are displayed is controlled by the series "dataLabel" option. There are 4 types of data labels to display:<p>
<ul>
<li>"label" - label of the point.
<li>"value" - value of the point.
<li>"percent" - percent of the whole (pie/donut/funnel) of the point.
<li>Array - custom array of data point labels, one for each point.
</ul>
<p>Formatting of labels is controlled through the series "dataLabelsFormatString" option. By default, the format string will be set based on the label type:
<ul>
<li>"label" - '%s', raw string.
<li>"value" - '%d', integer format.
<li>"percent" - '%d%%', integer with % sign appended.
<li>Array - '%s', raw string.
</ul>
<p>The following examples will clarify usage as well as other options. By default, data labels are turned off. They are enabled by setting the "showDataLabels: true" option. Below is the default configuration for a pie chart:</p>
<p>Notice that no data label was shown for "Insignia". This is because the area of its slice is less than the "dataLabelThreshold" (3% by default). The threshold is applicable no matter what type of label we used. We can change the threshold and the format string for the label in the following example:<p>
<p>Data labels function similarly for funnel and donut plots. Here is a funnel plot with the "dataLabels" option set to display the point label. Note that the label for "Insignia" is not displayed because Insignia represents less than 3% of the overall chart area, which is below the dataLabelThreshold:<p>
<p>The last example shows usage of a custom dataLabels array. Again, labels for small sections will not be displayed unless the "dataLabelThreshold" is reduced (it is set to 3 percent by default).</p>