I've got a problem with Grouping. I am building a chart for foreign currency trading, with FinancialYear (int) on the X Axis and VolumeTraded (decimal) on the Y Axis. I am retrieving data from a view using a raddomaindatasource and ria. I then group by Currency to build a stacked bar or stacked area chart. Some years, the client does not trade a particular currency. This creates problems. When I use a stacked area, say a currency is missing in 2007, a line is drawn straight from 2006 to 2008. It should follow the area below it. When I use a stacked bar, the result is OK. But when I use XCategory instead of XValue, I find that the 2007 stack will appear at the far right end. Also when I use XCategory and stacked area, 2007 is at the far right end and the area shapes that are drawn are... somewhat strange indeed.
<telerik:SeriesMapping x:Name="barChartMapping" ChartAreaName="chartArea1" ItemsSource="{Binding DataView, ElementName=rddsAllYears}">
<telerik:SeriesMapping.SeriesDefinition>
<telerikCharting:StackedAreaSeriesDefinition ShowItemLabels="False" />
</telerik:SeriesMapping.SeriesDefinition>
<telerik:SeriesMapping.ItemMappings>
<telerik:ItemMapping FieldName="FinancialYear" DataPointMember="XValue" />
<telerik:ItemMapping FieldName="VolumeTraded" DataPointMember="YValue" />
</telerik:SeriesMapping.ItemMappings>
<telerik:SeriesMapping.GroupingSettings>
<telerik:GroupingSettings>
<telerik:ChartGroupDescriptor Member="Currency"/>
</telerik:GroupingSettings>
</telerik:SeriesMapping.GroupingSettings>
</telerik:SeriesMapping>