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
close icon

How can I make a column label vertical not horizontal

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?

3 Replies

MD Matthew Daniels July 21, 2009 04:00 PM UTC

Anyone able to help with this?


VV Venkata Vijayaraj B Syncfusion Team 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.


MD Matthew Daniels July 23, 2009 09:18 AM UTC

Thanks Venkat that works perfectly.

Loader.
Live Chat Icon For mobile
Up arrow icon