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.

Set The AdornmentsPosition for each segment

Thread ID:

Created:

Updated:

Platform:

Replies:

121212 Nov 19,2015 03:01 AM Nov 26,2015 02:14 AM WPF 9
loading
Tags: SfChart
George Sterg
Asked On November 19, 2015 03:01 AM

Hello,

Is it possible to set the AdornmentsPosition property for each individual segment of a chart ?

Thanks

 George

Santhiya Arulsamy [Syncfusion]
Replied On November 20, 2015 04:21 AM

Hi George,

Thanks for contacting Syncfusion support.

We have analyzed your requirement. In SfChart, AdornmentPosition functionality will be applied to all the adornments in the series. Please provide more information about your requirement. This would help us to give you an appropriate solution.

Thanks,

Santhiya A.

George Sterg
Replied On November 20, 2015 04:25 AM

I would like to set some adornments with TopBottom position and other with Top position. I would to change that  by setting it from the labelTemplate ( a TextBlock for example).

Santhiya Arulsamy [Syncfusion]
Replied On November 20, 2015 10:48 AM

Hi George,

Thanks for your update.

We have prepared a work around sample to place an adornment either in Top or TopBottom based on the segment’s height. Please find the sample from the following location.

Sample: Adornment_121212

Thanks,

Santhiya A.

George Sterg
Replied On November 23, 2015 01:11 PM

Hello Santhiya,

Thanks the sample was very helpful. I also nee your assistance  to rotate the label segment based on the segment’s width. How can I do that?

Thanks in advance

Attachment: updated_Adornment_12121274691727_e452f16a.zip

Santhiya Arulsamy [Syncfusion]
Replied On November 24, 2015 07:47 AM

Hi George,

Thanks for your update.

You can achieve your requirement by using the LabelRotationAngle property in the AdornmentInfo. We have modified the sample for your reference. Please find the sample from the following location.

Sample: Adornment_121212

Thanks,

Santhiya A

George Sterg
Replied On November 24, 2015 08:27 AM

Santhiya,
The sample is giving me an error that the AdornmentInfo has no definition for the LabelRotationAngle. I'm using the 13.1451.0.21 version.

Thanks.

Santhiya Arulsamy [Syncfusion]
Replied On November 25, 2015 04:53 AM

Hi George,

Sorry for the inconvenience caused.

“LabelRotationAngle for Adornments” feature available from 13.2 release version. Could you please upgrade to the latest version? Or else please find the modified sample with a work around from the following location.

Sample: Adornment_121212

 
Regards,

Santhiya A

George Sterg
Replied On November 25, 2015 08:02 AM

Hi Santhiya,

Currenty I will use the work around, but an update is a "to-do" in the future.

Thanks

Santhiya Arulsamy [Syncfusion]
Replied On November 26, 2015 02:14 AM

Hi George,

Thanks for your update.

Please let us know if you need any further assistance.

Thanks,

Santhiya A

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.

;