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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing the orientation of column text labels into vertical orientation

Thread ID:

Created:

Updated:

Platform:

Replies:

49692 Sep 25,2006 06:01 AM UTC Oct 23,2006 03:40 AM UTC WinForms 3
loading
Tags: Chart
Mariana
Asked On September 25, 2006 06:01 AM UTC

Hello,

I would like to change the orientation of the column textlabels into vertical position (see second picture in attached file).
There are many choises of the series.Style.TextOrientation but none of these seems to fulfill my needs.
Is it possible to change the orientation into vertical postion in some way?

Best regards,
Mariana

Administrator [Syncfusion]
Replied On September 25, 2006 10:35 AM UTC


Hi Mariana,

It is possible to set the TextOrientation of the point labels to any directions say Up, Down, Left or Right. You need to set the DisplayText property of the series to true to make the TextOrientation to work.

You can also the change the angle of the point labels to any degree using Font''s Orientation property.

The following code illustrate this :

series1.Style.DisplayText=true;
series1.Style.TextOrientation=ChartTextOrientation.Up;
series1.Style.Font.Orientation=270;
series1.Style.Font.Size=9;
series1.Styles[0].Text="baseline";

The above code can also be achieved through PrepareStyle event.

Please try the attached sample which accommodates the above factors and helps you to display the point labels in vertical direction.

Thank you for your continued interest in Syncfusion products.

Regards,
Jaya

CustomLabelChartSample0.zip

Mariana
Replied On October 18, 2006 12:20 PM UTC

Hello,

Thanks for the help, it solved my problem.

I have another question about column text labels:
Is there any way I can find out the exact position (both in pixels and in chart units) of the labels in the chart?
Need that information in order to be able to rescale the chart properly when having column labels aligned vertically.

Best regards,
Mariana

Administrator [Syncfusion]
Replied On October 23, 2006 03:40 AM UTC

Hi Mariana,

Thanks for using Syncfusion products.

Please take a look at sample attached. Let me know if this helps.

1) In this sample, by moving mouse over the label you can get the point location
2) Scaling also illustrated.

If possible, send me an image as you expect with actual output.

Thanks,
Sureshbabu


CustomLabelShowPoint.zip

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.

Warning Icon 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.Close Icon

;