This question is locked. New answers and comments are not allowed.
Hello!
I'm trying to setup a RadChart displaying a pie chart where the data binding has several series of data (note: Using the Silverlight 4 DLLs). My understanding is that multiple series should make the control present several different pies. Instead, I'm getting a single pie with the Legend items repeated. Here's my XAML code:
I'm sure its something I'm doing wrong, but I haven't been able to find any examples with multiple series to compare against.
I'm trying to setup a RadChart displaying a pie chart where the data binding has several series of data (note: Using the Silverlight 4 DLLs). My understanding is that multiple series should make the control present several different pies. Instead, I'm getting a single pie with the Legend items repeated. Here's my XAML code:
<
chart:RadChart
x:Name
=
"chartDivisionDollars"
ItemsSource
=
"{Binding}"
Margin
=
"10"
Height
=
"200"
Background
=
"Transparent"
BorderThickness
=
"0"
DataContext
=
"{Binding}"
>
<
chart:RadChart.SeriesMappings
>
<
charting:SeriesMapping
LegendLabel
=
"Current Dollars"
>
<
charting:SeriesMapping.SeriesDefinition
>
<
charting:PieSeriesDefinition
ShowItemLabels
=
"True"
ShowItemToolTips
=
"True"
/>
</
charting:SeriesMapping.SeriesDefinition
>
<
charting:SeriesMapping.ItemMappings
>
<
charting:ItemMapping
FieldName
=
"CurrentYTD"
DataPointMember
=
"YValue"
/>
<
charting:ItemMapping
FieldName
=
"Division"
DataPointMember
=
"LegendLabel"
/>
</
charting:SeriesMapping.ItemMappings
>
</
charting:SeriesMapping
>
<
charting:SeriesMapping
LegendLabel
=
"Prior Dollars"
>
<
charting:SeriesMapping.SeriesDefinition
>
<
charting:PieSeriesDefinition
ShowItemLabels
=
"True"
ShowItemToolTips
=
"True"
/>
</
charting:SeriesMapping.SeriesDefinition
>
<
charting:SeriesMapping.ItemMappings
>
<
charting:ItemMapping
FieldName
=
"PriorYTD"
DataPointMember
=
"YValue"
/>
<
charting:ItemMapping
FieldName
=
"Division"
DataPointMember
=
"LegendLabel"
/>
</
charting:SeriesMapping.ItemMappings
>
</
charting:SeriesMapping
>
</
chart:RadChart.SeriesMappings
>
</
chart:RadChart
>
I'm sure its something I'm doing wrong, but I haven't been able to find any examples with multiple series to compare against.