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

Changing the orientation of column text labels into vertical orientation

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

3 Replies

AD Administrator Syncfusion Team 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


MA Mariana 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


AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon