ComponentOne FlexChart for UWP
FlexPie / FlexPie Fundamentals / Data Labels / Adding and Positioning Data Labels
In This Topic
    Adding and Positioning Data Labels
    In This Topic

    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 Position and Content properties of the 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 example code below uses the Position and Content properties to enable data labels and set their position.

    Copy Code
    <c1:C1FlexPie.DataLabel> <c1:PieDataLabel Content="{}{y}" Position="Circular"/>
    </c1:C1FlexPie.DataLabel>
    
    HTML
    Copy Code
    flexPie.DataLabel.Content = "{}{y}";
    flexPie.DataLabel.Position = C1.Chart.PieLabelPosition.Circular;