My data items look like this:
Is this possible?
I tried to with the following XAML code to configure the chart:
Thanks for any ideas...
Public Class ExportData Public Property MyDate As Date Public Property ItemType As String End ClassNow I'd like to get a stacked bar chart that groups the items by month and stacks the count of the different item types. For each month I would have a stacked bar that says for example "Jan 11 = 3 items of type A, 4 items of type B, 5 items of type C".
Is this possible?
I tried to with the following XAML code to configure the chart:
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
x:Name
=
"DataMapping"
LegendLabel
=
"Sales"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
ShowItemLabels
=
"True"
ShowItemToolTips
=
"True"
ItemToolTipFormat
=
"#Y"
>
<
telerik:StackedBarSeriesDefinition.InteractivitySettings
>
<
telerik:InteractivitySettings
HoverScope
=
"Series"
SelectionScope
=
"None"
/>
</
telerik:StackedBarSeriesDefinition.InteractivitySettings
>
</
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"ItemType"
DataPointMember
=
"YValue"
AggregateFunction
=
"Count"
/>
<
telerik:ItemMapping
FieldName
=
"MyDate"
DataPointMember
=
"XCategory"
/>
</
telerik:SeriesMapping.ItemMappings
>
<
telerik:SeriesMapping.GroupingSettings
>
<
telerik:GroupingSettings
StackGroupFieldName
=
"ItemType"
ShouldFlattenSeries
=
"True"
>
<
telerik:GroupingSettings.GroupDescriptors
>
<
telerik:ChartYearGroupDescriptor
/>
<
telerik:ChartMonthGroupDescriptor
/>
<
telerik:ChartGroupDescriptor
Member
=
"ItemType"
/>
</
telerik:GroupingSettings.GroupDescriptors
>
</
telerik:GroupingSettings
>
</
telerik:SeriesMapping.GroupingSettings
>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>