Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion wpf/Charts/SeriesTypes/PieandDoughnut.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ The small segments in the pie chart can be grouped into the “others” categor

{% highlight xaml %}

<Window.Resources>
<local:DataLabelTemplateConverter x:Key="DataLabelConverter"/>

<DataTemplate x:Key="DataLabelTemplate">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Text="{Binding Converter={StaticResource DataLabelConverter}}"
Margin="3" Foreground="White">
</TextBlock>
</StackPanel>
</DataTemplate>
</Window.Resources>

<chart:PieSeries ItemsSource="{Binding Data}" XBindingPath="Country" YBindingPath="Count"
GroupMode="Value" GroupTo="1000" >

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

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

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.

**Pie series with grouping (Mode - Angle)**

{% tabs %}
Expand Down Expand Up @@ -645,4 +659,4 @@ N> You can refer to our [WPF Doughnut Chart](https://www.syncfusion.com/wpf-cont

## See also

[`How to create Pie Chart in C# WPF`](https://www.syncfusion.com/kb/10789/how-to-create-pie-chart-in-c-wpf)
[`How to create Pie Chart in C# WPF`](https://www.syncfusion.com/kb/10789/how-to-create-pie-chart-in-c-wpf)