ComponentOne FlexChart for WinForms
Adding and Positioning Data Labels
Sunburst Chart > Data Labels > Adding and Positioning Data Labels

With Sunburst 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.

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

// Set the data label 
contentsunburst1.DataLabel.Content = "{name}\n{value}";
// Set the data label position
sunburst1.DataLabel.Position = C1.Chart.PieLabelPosition.Inside;