We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Axis label text alignment

Hello,

We use a custom template to display axes label. We have implemented the rotation for these labels. The alignment was working fine in 8.2.0.18. But in 10.1.0.44, the labels are always centered by default (see pictures inclosed within). We tried to use the property LabelHorizontalAlignment of the ChartAxis. But it doesn't work if the property LabelWidth is not set. As labels have unknown size (extraction from a cube), it is not easy to set LabelWidth.
Is there any way to have the behavior of the 8.2.0.18 in 10 ? Or can we make LabelHorizontalAlignment work without LabelWidth ?

Cordially,

Olivier Vayssié



Pictures_bf95cab9.zip

2 Replies

OV Olivier VAYSSIE April 13, 2012 06:52 AM UTC

Well, in the end we used a TranslateTransform on the textblock displaying the labels, using converters for X and Y moving the text of text width/2



MP Michael Prabhu M Syncfusion Team April 18, 2012 03:59 PM UTC

Hi Olivier,

Thanks for the udpate and sorry for the delay in getting back at this. Since we have added some new features like Label Prefix and Postfix for axis label the labels are centered by default.

We are glad that your issue is resolved.

Please let us know if you have any queries.

Thanks,
Michael Prabhu.


Loader.
Live Chat Icon For mobile
Up arrow icon