I need to bind to a simple pie chart and I don't seem to be having any luck, perhaps there is something I'm missing.
Basically, I have a collection of items with a property called "Status", which is a string. I want to create a pie chart that shows how many items have each "Status". Here is what I've come up with, which just shows a solid blue circle.
Basically, I have a collection of items with a property called "Status", which is a string. I want to create a pie chart that shows how many items have each "Status". Here is what I've come up with, which just shows a solid blue circle.
<
telerik:RadChart
ItemsSource
=
"{Binding}"
>
<
telerik:RadChart.DefaultSeriesDefinition
>
<
telerik:PieSeriesDefinition
/>
</
telerik:RadChart.DefaultSeriesDefinition
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
>
<
telerik:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Status"
/>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Status"
AggregateFunction
=
"Count"
/>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
</
telerik:RadChart
>