This is a migrated thread and some comments may be shown as answers.
LabelsAppearance.rotationangle missing
2 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 07 Jan 2013, 11:28 PM

I am trying to add data to a chart serverside and need to rotate the label text and am not seeing how to do this.

 

there is no  cols.LabelsAppearance.RotationAngle

http://www.telerik.com/help/aspnet-ajax/htmlchart-server-side-api.html seems to indicate that I should be able to do it and the demo has the ability to do it.

I just used the telerik control panel to make sure I had the latest and the telerik upgrade wizards does not appear to be finding something else for me to upgrade to.

These are the values.
Version: 2012.3.1205.40
Runtime: v4.0.30319

 

ColumnSeries cols = new ColumnSeries();
 
cols.Name = "Sam Adams";
cols.TooltipsAppearance.Visible = false;
cols.Appearance.FillStyle.BackgroundColor = System.Drawing.Color.Red;
cols.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.InsideBase;
 
cols.Items.Add(15000);
cols.Items.Add(23000);
cols.Items.Add(10000);
cols.Items.Add(16000);
RadHtmlChart1.PlotArea.Series.Add(cols);

2 Answers, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 09 Jan 2013, 04:35 PM
Hello Steven,

You can set LabelsAppearance's RotationAngle property from the code-behind since our Q3 2012 Release (2012.3.1016), so I suggest you to review the version of the DLL files you are referencing in your project. The following blog post (the Visual Studio section) can help you with this: http://blogs.telerik.com/aspnet-ajax/posts/12-03-28/getting-tired-of-seeing-trial-messages-in-your-asp-net-ajax-application.aspx.

You can have a look at the project demo and the screenshot attached, which demonstrates how you can rotate the labels on 90 degrees.

Regards,
Stamo Gochev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Bryan
Top achievements
Rank 1
answered on 30 Dec 2013, 03:27 AM
I found that the Intellisense block was not showing the RotationAngle property, but pasting it in to my code and forcing the property, it seems to have worked.
Asked by
Steven
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Bryan
Top achievements
Rank 1
Share this question
or