ComponentOne FlexChart for WinForms
Adding and Positioning Labels
FlexPie > Data Labels > Adding and Positioning Labels

With FlexPie chart, you can configure the arrangement and display properties for data labels depending on what suits your needs the best. By default, the data labels are not displayed on the chart, however, you can enable them by setting the Position and Content properties of DataLabel class. Here, the Position property sets position of the data labels by accepting values from the PieLabelPosition enumeration and the Content property gets or sets content for the data labels. The PieLabelPosition enumeration specifies various positions of data labels on the pie chart including automatic label position.

The example code below uses the Position and Content properties to enable data labels and set their position.

// Configure content property
flexPie1.DataLabel.Content = "{seriesName}\n{Name}\n{value}"; 

// Set position of data labels
flexPie1.DataLabel.Position = C1.Chart.PieLabelPosition.Circular;

FlexPie