I've been messing with pushing data to this chart for awhile, but I can't seem to figure out it is displaying this way, please assist me in what I'm doing wrong
The chart
The Xaml
<
<ig:XamDataChart x:Name="GlobalDataChart" ig:XamDock.Edge="Central" Legend="{Binding ElementName=GlobalLegend}">
<ig:XamDataChart.Axes>
<ig:CategoryXAxis x:Name="GlobalcommonXAxis" ItemsSource="{Binding}" Label="{}{Label}">
</ig:CategoryXAxis>
<ig:NumericYAxis x:Name="GlobalxmYAxis" MinimumValue="0" Label="{}{:c2}" >
<ig:NumericYAxis.LabelSettings>
<ig:AxisLabelSettings Location="OutsideLeft" Extent="100" />
</ig:NumericYAxis.LabelSettings>
</ig:NumericYAxis>
<ig:NumericYAxis x:Name="GlobalxmVolumeYAxis" Label="{}{:n0} " MinimumValue="0" >
<ig:AxisLabelSettings Location="OutsideRight" Extent="100"/>
</ig:XamDataChart.Axes>
<ig:XamDataChart.Series>
<ig:ColumnSeries x:Name="csOne" ValueMemberPath="OT" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmVolumeYAxis}" Title="Volume" Thickness="1" >
<ig:ColumnSeries.ToolTip>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Series.Title}"FontWeight="Bold" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Item.OT, Converter={StaticResource Comma}}"/>
</StackPanel>
<TextBlock Text="{Binding Item.Measure}"/>
</ig:ColumnSeries.ToolTip>
</ig:ColumnSeries>
<ig:ColumnSeries x:Name="csTwo" ValueMemberPath="ST" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Sales" Thickness="1">
<TextBlock Text="{Binding Series.Title}"
FontWeight="Bold" />
<TextBlock Text="{Binding Item.ST, Converter={StaticResource Currency}}"/>
<ig:ColumnSeries x:Name="csThree" ValueMemberPath="Value" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Income" Thickness="1">
<TextBlock Text="{Binding Item.Value, Converter={StaticResource Currency}}"/>
<ig:ColumnSeries ValueMemberPath="OT2" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmVolumeYAxis}" Title="Volume" Thickness="1" >
<TextBlock Text="{Binding Item.OT2, Converter={StaticResource Comma}}"/>
<TextBlock Text="{Binding Item.Measure2}"/>
<ig:ColumnSeries ValueMemberPath="ST2" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Sales" Thickness="1">
<TextBlock Text="{Binding Item.ST2, Converter={StaticResource Currency}}"/>
<ig:ColumnSeries ValueMemberPath="Value2" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Income" Thickness="1">
<TextBlock Text="{Binding Item.Value2, Converter={StaticResource Currency}}"/>
<ig:ColumnSeries ValueMemberPath="OT3" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmVolumeYAxis}" Title="Volume" Thickness="1" >
<TextBlock Text="{Binding Item.OT3, Converter={StaticResource Comma}}"/>
<TextBlock Text="{Binding Item.Measure3}"/>
<ig:ColumnSeries ValueMemberPath="ST3" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Sales" Thickness="1">
<TextBlock Text="{Binding Item.ST3, Converter={StaticResource Currency}}"/>
<ig:ColumnSeries ValueMemberPath="Value3" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Income" Thickness="1">
<TextBlock Text="{Binding Item.Value3, Converter={StaticResource Currency}}"/>
</ig:XamDataChart.Series>
</ig:XamDataChart>
<ig:Legend x:Name="GlobalLegend" Margin="80,0,0,0" ig:XamDock.Edge="OutsideTop" ig:XamDock.HorizontalDockAlignment="Center" ig:XamDock.VerticalDockAlignment ="Top" Orientation="Horizontal"></ig:Legend>
</ig:XamDock>
And the WCF Service populating data
var
foreach (var b in a)
{
if (b.Measure == "Net Income")
this.Add(new LineDataPoints() { Label = b.Measure, Value = b.PerformValue, Measure = b.Scenario });
}
else if (b.Measure == "Net Sales")
this.Add(new LineDataPoints() { Label = b.Measure, ST = b.PerformValue, Measure = b.Scenario });
else if (b.Measure == "Volume")
this.Add(new LineDataPoints() { Label = b.Measure, OT = b.PerformValue, Measure = b.Scenario });
Its hard to tell without seeing your data, but would guess that perhaps it is not aligned? see: http://community.infragistics.com/forums/p/38082/220246.aspx#220246
Could you post some sample data that represents the shape of your data? I should be able to help you get it into the chart appropriately.
-Graham