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
(see attached)
Thank you
3 Answers, 1 is accepted
0
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
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.
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.
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
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
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.
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.