Skip to content

Commit d352dc5

Browse files
Merge pull request #1964 from syncfusion-content/WPF-988644-PieChartUGUpdate
WPF-988644-Updated Pie and Doughnut Chart content document to include DataLabelTemplate sample
2 parents 78132e2 + d2c860e commit d352dc5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

wpf/Charts/SeriesTypes/PieandDoughnut.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ The small segments in the pie chart can be grouped into the “others” categor
100100

101101
{% highlight xaml %}
102102

103+
<Window.Resources>
104+
<local:DataLabelTemplateConverter x:Key="DataLabelConverter"/>
105+
106+
<DataTemplate x:Key="DataLabelTemplate">
107+
<StackPanel Orientation="Vertical" Margin="5">
108+
<TextBlock Text="{Binding Converter={StaticResource DataLabelConverter}}"
109+
Margin="3" Foreground="White">
110+
</TextBlock>
111+
</StackPanel>
112+
</DataTemplate>
113+
</Window.Resources>
114+
103115
<chart:PieSeries ItemsSource="{Binding Data}" XBindingPath="Country" YBindingPath="Count"
104116
GroupMode="Value" GroupTo="1000" >
105117

@@ -137,6 +149,8 @@ The small segments in the pie chart can be grouped into the “others” categor
137149

138150
![WPF Pie Chart with Grouping](Series_images/wpf-pie-chart-grouping.png)
139151

152+
You can explore our KB article on showing adornment labels for grouped values in WPF Circular Chart to learn [`how to configure and display labels for grouped values`](https://support.syncfusion.com/kb/article/21684/how-to-show-adornment-labels-for-grouped-values-in-wpf-circular-chart) effectively.
153+
140154
**Pie series with grouping (Mode - Angle)**
141155

142156
{% tabs %}

0 commit comments

Comments
 (0)