Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Axis Display issue
posted

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:XamDock Margin="10">

 

<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:NumericYAxis.LabelSettings>

<ig:AxisLabelSettings Location="OutsideRight" Extent="100"/>

</ig:NumericYAxis.LabelSettings>

</ig:NumericYAxis>

</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>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure}"/>

</StackPanel>

</StackPanel>

</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">

<ig:ColumnSeries.ToolTip>

<StackPanel Orientation="Vertical">

<TextBlock Text="{Binding Series.Title}"

FontWeight="Bold" />

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.ST, Converter={StaticResource Currency}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries x:Name="csThree" ValueMemberPath="Value" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Income" Thickness="1">

<ig:ColumnSeries.ToolTip>

<StackPanel Orientation="Vertical">

<TextBlock Text="{Binding Series.Title}"FontWeight="Bold" />

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Value, Converter={StaticResource Currency}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries ValueMemberPath="OT2" 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.OT2, Converter={StaticResource Comma}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure2}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries ValueMemberPath="ST2" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Sales" Thickness="1">

<ig:ColumnSeries.ToolTip>

<StackPanel Orientation="Vertical">

<TextBlock Text="{Binding Series.Title}"FontWeight="Bold" />

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.ST2, Converter={StaticResource Currency}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure2}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries ValueMemberPath="Value2" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Income" Thickness="1">

<ig:ColumnSeries.ToolTip>

<StackPanel Orientation="Vertical">

<TextBlock Text="{Binding Series.Title}"FontWeight="Bold" />

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Value2, Converter={StaticResource Currency}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure2}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries ValueMemberPath="OT3" 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.OT3, Converter={StaticResource Comma}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure3}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries ValueMemberPath="ST3" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Sales" Thickness="1">

<ig:ColumnSeries.ToolTip>

<StackPanel Orientation="Vertical">

<TextBlock Text="{Binding Series.Title}"FontWeight="Bold" />

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.ST3, Converter={StaticResource Currency}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure3}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

<ig:ColumnSeries ValueMemberPath="Value3" XAxis="{Binding ElementName=GlobalcommonXAxis}" ItemsSource="{Binding}"YAxis="{Binding ElementName=GlobalxmYAxis}" Title="Net Income" Thickness="1">

<ig:ColumnSeries.ToolTip>

<StackPanel Orientation="Vertical">

<TextBlock Text="{Binding Series.Title}"FontWeight="Bold" />

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Value3, Converter={StaticResource Currency}}"/>

</StackPanel>

<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Measure3}"/>

</StackPanel>

</StackPanel>

</ig:ColumnSeries.ToolTip>

</ig:ColumnSeries>

</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

 

 

a = from c in e.Result select c;

 

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 });

}

}

Parents
No Data
Reply Children
No Data