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

Labels on Stacked Bar Charts overlaps

9 Answers 651 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Navnit
Top achievements
Rank 2
Navnit asked on 11 Aug 2011, 02:50 PM
Hi Telerik Team,

Can you please advise me how to position these labels on top of the Y-Axis in a way so as they do not overlap each other when the corresponding value of the Y-Axis is too small. See the screenshot for details.

Please note that I am building the chart programatically and setting the AutoLayout to True.

Thank you!
Navnit

9 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 12 Aug 2011, 09:02 AM
Hi Navnit,

Set the IntelligentLabelsEnabled property of the chart to True, which would guarantee that the labels would not overlap with each other. Additionally if you want to make it absolutely clear which label is for which series item, you can enable label connectors by setting the ShowLabelConnectors property of the chart series to True. I've attached a sample report that shows both settings at hand, so give it a spin and let us know how it goes.

Regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Navnit
Top achievements
Rank 2
answered on 12 Aug 2011, 09:51 AM
Cool !
Works like a charm. Did not know it would have been that easy. Nice one Telerik Team.

The connectors are also a good way to make it clear as you pointed out. But to be honest, it kind of spoil the overall look of the chart and also sometimes, if the labels are all aligned exactly on top of each other, a vertical line is being drawn from the 1st label to the last one, which makes it very hard to comprehend. See screenshot.

Thanks again..
Kind Regards,
Navnit
 
0
Steve
Telerik team
answered on 12 Aug 2011, 10:58 AM
Hi Navnit,

Yes in the cases where the IntelligentLabels has placed them on top of each other, it does not make sense to enable the connectors. Usually if you have only a couple of items, their labels would be aligner in a way so that you can distinguish the item to which the label belongs to. The problem comes with the higher number of items.

Regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Navnit
Top achievements
Rank 2
answered on 12 Aug 2011, 11:04 AM
Hi Steve,

Yes this perfectly makes sense. 

Thank you for you support!

Regards,
Navnit
0
Thomas
Top achievements
Rank 1
answered on 25 May 2012, 08:54 AM
Hi Steve,
it is possible to set the position of the labels to the center of the bars? When I set the aligned position of the labels to "center" their position is only at the top-center of the bar. 

Edit: How you can see, the labels lie sometimes/partially outside the plot area, althogh i set AutoLayout && IntelligentLables to true. is there a solution how to show all labels in the plot area.

Regards,
Thomas
0
Steve
Telerik team
answered on 29 May 2012, 01:57 PM
Hello Thomas,

It might be better to turn off the IntelligentLabelsEnabled property for such setup. About setting the position to center of the bars, use the following properties:

chartSeries1.Appearance.LabelAppearance.LabelLocation = Telerik.Reporting.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;
chartSeries1.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Reporting.Charting.Styles.AlignedPositions.Center; chartSeries1.Appearance.LabelAppearance.Position.Auto = false;

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Gaurav
Top achievements
Rank 1
answered on 21 Oct 2013, 04:44 AM
I couldn't find IntelligentLabelsEnabled  property in report designer tool (stand alone tool) ?
0
Kyle
Top achievements
Rank 1
answered on 10 Jul 2017, 08:51 PM

Hi Telerik Team, 

I cannot find IntelligentLabelsEnabled and ShowLabelConnectors from the Xamarin.iOS Doc anymore. Are there any replacement properties that handle the label overlapping issue? 

Please let me know if there is a work around that you would recommend.

Thanks,
Kyle

0
Stef
Telerik team
answered on 11 Jul 2017, 09:46 AM
Hi Kyle,

This is Telerik Reporting forum and the discussion is about the old Reporting Chart item, that is now replaced by the Reporting Graph item. The Graph item uses internal algorithms for positioning labels, where you can additionally affect label connectors - How to: Setup a Pie Chart With No Overlapping Labels.

If you are using other components, not Telerik Reporting, please open a support ticket or forum thread with selected product of interest. This guarantees your inquiry will be addressed by the team handling the product.

Regards,
Stef
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Navnit
Top achievements
Rank 2
Answers by
Steve
Telerik team
Navnit
Top achievements
Rank 2
Thomas
Top achievements
Rank 1
Gaurav
Top achievements
Rank 1
Kyle
Top achievements
Rank 1
Stef
Telerik team
Share this question
or