Below is an example chart, all declarative XAML that I am prototyping, can someone tell me a few things...
- Why do the values represented by one of the stack elements float in space instead of stacking onto the other bars in their column?
- How can I get my XValues (which are years) to sort ascending left to righ
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SilverlightApplication3.MainPage" xmlns:control="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" Width="1024" Height="768"> <Grid x:Name="LayoutRoot" Background="White"> <control:RadChart x:Name="RadChart1" Grid.Row="0" Grid.Column="0"> <control:RadChart.DefaultView> <chart:ChartDefaultView > <chart:ChartDefaultView.ChartArea> <chart:ChartArea LegendName="CustomLegend"> <chart:ChartArea.AnimationSettings> <chart:AnimationSettings/> </chart:ChartArea.AnimationSettings> <chart:ChartArea.AxisX> <chart:AxisX MajorGridLinesVisibility="Visible" LabelRotationAngle="90" StripLinesVisibility="Visible" Step="1" LabelStep="1" /> </chart:ChartArea.AxisX> <chart:ChartArea.AxisY> <chart:AxisY MajorGridLinesVisibility="Visible" MinorTicksVisibility="Visible" Title="Item Count" /> </chart:ChartArea.AxisY> <chart:ChartArea.DataSeries > <chart:DataSeries Label="US" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="2001"/> <chart:DataPoint YValue="2" XValue="2002"/> <chart:DataPoint YValue="4" XValue="2003"/> <chart:DataPoint YValue="3" XValue="2004"/> <chart:DataPoint YValue="6" XValue="2005"/> <chart:DataPoint YValue="9" XValue="2006"/> <chart:DataPoint YValue="18" XValue="2007"/> <chart:DataPoint YValue="9" XValue="2008"/> </chart:DataSeries> <chart:DataSeries Label="AU" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="1987"/> <chart:DataPoint YValue="1" XValue="1988"/> <chart:DataPoint YValue="2" XValue="1989"/> <chart:DataPoint YValue="1" XValue="1996"/> <chart:DataPoint YValue="3" XValue="2000"/> <chart:DataPoint YValue="2" XValue="2002"/> <chart:DataPoint YValue="1" XValue="2003"/> <chart:DataPoint YValue="1" XValue="2007"/> </chart:DataSeries> <chart:DataSeries Label="CA" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="1978"/> <chart:DataPoint YValue="1" XValue="1985"/> <chart:DataPoint YValue="1" XValue="1994"/> <chart:DataPoint YValue="2" XValue="2004"/> <chart:DataPoint YValue="1" XValue="2006"/> <chart:DataPoint YValue="5" XValue="2007"/> <chart:DataPoint YValue="2" XValue="2008"/> </chart:DataSeries> <chart:DataSeries Label="DE" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="1976"/> <chart:DataPoint YValue="1" XValue="1978"/> <chart:DataPoint YValue="1" XValue="1994"/> <chart:DataPoint YValue="1" XValue="1996"/> <chart:DataPoint YValue="1" XValue="1996"/> <chart:DataPoint YValue="1" XValue="1998"/> <chart:DataPoint YValue="1" XValue="2002"/> <chart:DataPoint YValue="1" XValue="2004"/> <chart:DataPoint YValue="1" XValue="2006"/> </chart:DataSeries> <chart:DataSeries Label="EP" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="2001"/> <chart:DataPoint YValue="2" XValue="2002"/> <chart:DataPoint YValue="2" XValue="2003"/> <chart:DataPoint YValue="5" XValue="2004"/> <chart:DataPoint YValue="1" XValue="2005"/> <chart:DataPoint YValue="4" XValue="2006"/> <chart:DataPoint YValue="4" XValue="2006"/> <chart:DataPoint YValue="1" XValue="2007"/> <chart:DataPoint YValue="19" XValue="2008"/> <chart:DataPoint YValue="3" XValue="2008"/> <chart:DataPoint YValue="2" XValue="2009"/> <chart:DataPoint YValue="1" XValue="2009"/> </chart:DataSeries> <chart:DataSeries Label="ES" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="1996"/> <chart:DataPoint YValue="2" XValue="1998"/> <chart:DataPoint YValue="1" XValue="2000"/> <chart:DataPoint YValue="1" XValue="2002"/> <chart:DataPoint YValue="1" XValue="2004"/> <chart:DataPoint YValue="3" XValue="2005"/> <chart:DataPoint YValue="1" XValue="2006"/> <chart:DataPoint YValue="2" XValue="2007"/> <chart:DataPoint YValue="1" XValue="2008"/> </chart:DataSeries> <chart:DataSeries Label="FR" > <chart:DataSeries.Definition> <chart:StackedBarSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"/> </chart:DataSeries.Definition> <chart:DataPoint YValue="1" XValue="1976"/> <chart:DataPoint YValue="1" XValue="1995"/> <chart:DataPoint YValue="1" XValue="1998"/> <chart:DataPoint YValue="1" XValue="1999"/> <chart:DataPoint YValue="1" XValue="2000"/> <chart:DataPoint YValue="1" XValue="2001"/> </chart:DataSeries> </chart:ChartArea.DataSeries> </chart:ChartArea> </chart:ChartDefaultView.ChartArea> <chart:ChartDefaultView.ChartLegend> <chart:ChartLegend x:Name="CustomLegend" UseAutoGeneratedItems="True" /> </chart:ChartDefaultView.ChartLegend> <chart:ChartDefaultView.ChartTitle> <chart:ChartTitle> <TextBlock Text="Values Over Time"/> </chart:ChartTitle> </chart:ChartDefaultView.ChartTitle> </chart:ChartDefaultView> </control:RadChart.DefaultView> </control:RadChart> </Grid> </UserControl>