This is a migrated thread and some comments may be shown as answers.

Vertical labels on bar series

3 Answers 224 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 08 Apr 2014, 07:41 PM
Will there be support in the future to allow vertically oriented labels on bar charts?  Or does that feature currently exist and I'm missing it?

(see attached)

Thank you

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 10 Apr 2014, 12:38 PM
Hello Ryan,

Thank you for writing.

In the described case the angle property is not used to change the text orientation in the labels. This property allows you to move the labels around the data point when the line series are used for example.

In this case you can use the built-in smart labels feature which is very useful when you have such labels. More information about this is available in the following article: Smart labels | UI for WinForms Documentation.

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ryan
Top achievements
Rank 1
answered on 10 Apr 2014, 02:25 PM
Hi Dimitar.  Thank you for your response.

I added the below code:
barDealsByStatus.ShowSmartLabels = true;

I tried both before setting the chart datasource and after.  Neither have any affect on the display of the labels.

Here's how I'm setting the points:
                                Telerik.WinControls.UI.BarSeries b = new Telerik.WinControls.UI.BarSeries();
                                b.ShowLabels = true;
                                CategoricalDataPoint cdp = new CategoricalDataPoint((double)x.DealCount, x.Status);
                                cdp.Label = "Cal" + " (" + x.DealCount + ")";
                                b.DataPoints.Add(cdp);
                                barDealsByStatus.Series.Add(b);

Is something I'm doing by dynamically creating the series & datapoints in code causing the smart labels to not function?

Thank you.



0
Dimitar
Telerik team
answered on 15 Apr 2014, 07:59 AM
Hello Ryan,

Thank you for writing back.

The provide code looks OK and without the actual project I cannot tell why this functionality does not work properly. This is why I have created and attached a small sample project. Could you please check it and let me know how it differs from your real setup? 

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ChartView
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or