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.
Unfortunately, activation email could not send to your email. Please try again.

Axis label text alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

103071 Mar 28,2012 06:18 AM Apr 18,2012 11:59 AM WPF 2
loading
Tags: Chart
Olivier VAYSSIE
Asked On March 28, 2012 06:18 AM

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

Olivier VAYSSIE
Replied On April 13, 2012 02:52 AM

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


Michael Prabhu M [Syncfusion]
Replied On April 18, 2012 11:59 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;