I have set up a XamDataChart in XAML using WPF v15.1.20151.2055 like this:
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ig="http://schemas.infragistics.com/xaml" Title="MainWindow" Height="300" Width="800"> <Grid> <ig:XamDataChart x:Name="ctrlChart"> <ig:XamDataChart.Axes> <ig:CategoryDateTimeXAxis MajorStroke="Black" VerticalAlignment="Bottom"> </ig:CategoryDateTimeXAxis> </ig:XamDataChart.Axes> </ig:XamDataChart> </Grid> </Window>
In this configuration, the grid lines for the x-axis are not displayed. If I remove the VerticalAlignment setting, then the grid lines are displayed. This is not causing a specific problem for me to remove this setting, but it took quite a bit of time to figure out this was the issue so I would like to know how this setting is impacting the chart?
Thanks!
I guess that makes sense. I was originally setting the VerticalAlignment while trying to figure out another issue related to the initial draw of the chart/axis not displaying X-axis tick mark labels until a chart re-size so it was not specifically needed for what I am doing, but I wanted more info on why I got the result I did.