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.
Syncfusion Feedback

How can I make a column label vertical not horizontal

Thread ID:

Created:

Updated:

Platform:

Replies:

88111 Jul 15,2009 01:22 PM UTC Jul 23,2009 09:18 AM UTC Windows Forms 3
loading
Tags: Chart
Matthew Daniels
Asked On July 15, 2009 01:22 PM UTC

Hi

I have a column chart where each of the bars is labelled using:

uxChart.Series[index].Style.DisplayText = true; uxChart.Series[index].Style.TextOrientation = ChartTextOrientation.RegionCenter;

This displays horizontal text in the middle of the bar. However the text is wider than the bar and I would like it to be orientated vertically along the bar.

How can I do this from code?

Matthew Daniels
Replied On July 21, 2009 04:00 PM UTC

Anyone able to help with this?

Venkata Vijayaraj B [Syncfusion]
Replied On July 22, 2009 05:00 AM UTC

Hi Matthew,

To customize the orientation of Chart point's text, use the below code

series1.Style.Font.Orientation = 270; // Customizing all the points orientation
series1.Styles[index].Font.Orientation = 270; // Customizing individual points orientation

Please refer the below documentation links for more details on Text customization.

http://help.syncfusion.com/ug_73/chartwin/DisplayText.html
http://help.syncfusion.com/ug_73/chartwin/TextOffset.html
http://help.syncfusion.com/ug_73/chartwin/TextOrientation.html
http://help.syncfusion.com/ug_73/chartwin/SmartLabels.html

Chart Documentation Link:
http://help.syncfusion.com/ug_73/chartwin/default.html

Thank you for your interest in Syncfusion products.

Regards,
Venkat.

Matthew Daniels
Replied On July 23, 2009 09:18 AM UTC

Thanks Venkat that works perfectly.

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

;