FlexChart for WPF
データラベルの追加と配置
FlexPie > データラベル > データラベルの追加と配置

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

コードのコピー
<c1:C1FlexPie.DataLabel> <c1:PieDataLabel Content="{}{y}" Position="Circular"/>
</c1:C1FlexPie.DataLabel>
HTML
コードのコピー
flexPie.DataLabel.Content = "{}{y}";
flexPie.DataLabel.Position = C1.Chart.PieLabelPosition.Circular;