You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -145,38 +143,14 @@ The small segments in the pie chart can be grouped into the “others” categor
145
143
146
144
pieSeries.AdornmentsInfo = adornmentInfo;
147
145
148
-
149
-
public class DataLabelTemplateConverter : IValueConverter
150
-
{
151
-
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
152
-
{
153
-
if (value is ChartPieAdornment adornment)
154
-
{
155
-
if (adornment.Item is CountryInfo model)
156
-
{
157
-
// Case 1: Single data label item
158
-
}
159
-
else if (adornment.Item is IEnumerable<object> group)
160
-
{
161
-
// Case 2: Grouped items (e.g., List<CountryInfo>)
162
-
}
163
-
}
164
-
165
-
return value;
166
-
}
167
-
168
-
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
169
-
{
170
-
throw new NotImplementedException();
171
-
}
172
-
}
173
-
174
146
{% endhighlight %}
175
147
176
148
{% endtabs %}
177
149
178
150

179
151
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.
0 commit comments