Which property should I use to take out the space between the labels and the y axis? If I modify the extent of the axis it will move along with the labels and the space is kept.
Many thanks for your guidance.
I am working on a composite chart with consists of two line charts sharing the same X axis.
This solution resolves the issue with spacing between the labels and the axis.
However it doesn't let me set the font for the labels and also doesn't display the the topmost label.
I have the axis.Rangetype = Automatic and
axis.Tickmarkstyle = Smart
The behavior = auto did the trick.
Thanks.
what version are you using? have you tested this using the latest available hotfix? that does not look like the correct behavior, and when I tested it on my machine i wasn't able to reproduce what you show in your attached image.
another thing that might help is setting Axis.Y.Labels.SeriesLabels.Layout.Behavior = Auto.
Thanks for trying but it will only align them in a different way but keeping the space between labels and axis. I want to be able to align them to the right as I had them but closer to the axis bar. Here it is how it looks with the change you mentioned.
Hi,
The problem come from the value you have set to the HorizontalAlign property of the Y axes SeriesLabels. Setting it to Center will fix it:
<Y Extent="250" LineEndCapStyle="Flat" LineThickness="1" TickmarkInterval="1" TickmarkStyle="Smart" Visible="true" > ..... <Labels Font="Arial, 7pt" HorizontalAlign="Far" ItemFormatString="<ITEM_LABEL>" Orientation="Horizontal" VerticalAlign="Center" Visible="False"> <SeriesLabels Font="Arial, 10pt" HorizontalAlign="Center" Orientation="Horizontal" VerticalAlign="Near"> </SeriesLabels> </Labels></Y>