Hello,
In my datachart I have date times in x axis. I want to fit them vertically.
<ig:CategoryDateTimeXAxis.LabelSettings>
<ig:AxisLabelSettings Location="InsideBottom" Angle="270" VerticalAlignment="Bottom" FontSize="10" Extent="25" />
</ig:CategoryDateTimeXAxis.LabelSettings>
But as you can see from image, dates are not started from bottom part. There is a gap between bottom and date label. When I do not use extent property dates are not visible. Just one letter is visible. Have you got an idea?
Thanks
Using DataTemplate solves the issue
thank you very much petar
I have been looking into your issue and I can suggest creating a label template as described here: http://samples.infragistics.com/sldv/RunSamples.aspx?cn=data-chart#/data-chart/axis-label-templates , in which body you will be able to use the Margin property to accurately adjust the location of the labels. E.g.:
<ig:CategoryXAxis x:Name="dateXAxis" ItemsSource="{Binding}" >
<ig:CategoryXAxis.LabelSettings >
<ig:AxisLabelSettings Location="InsideBottom" Extent="100" Angle="270" />
</ig:CategoryXAxis.LabelSettings>
<ig:CategoryXAxis.Label>
<DataTemplate>
<TextBlock Text="{Binding Item.Date}" Margin="-100,0,0,0" />
</DataTemplate>
</ig:CategoryXAxis.Label>
</ig:CategoryXAxis>
Please let me know if I can be of any further assistance on the matter.
I thought it was a easy question but no one responded :)
This datachart included in the xamdock and xamdock is the last row of a Grid.
I am waiting for your help