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

Bar Chart axis label hide due to numbers of records

2 Answers 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Muhammmad
Top achievements
Rank 1
Muhammmad asked on 10 May 2012, 07:46 AM
Hi

When there are more than 21 records display in the bar chart, axis label of top and lower bar hide automatically. Why is that? I have attached a snap for your assistance. Waiting for your valuable replies.

2 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 14 May 2012, 11:44 AM
Hi Muhammad,

If I understand correctly you are talking about the Item Labels and not the Axis Labels.

This is known problem in the RadChart - when the height is not enough, the labels do not have enough space and they get clipped. This is not the result of the number of the items by itself, but because of the number of items - the space is not enough and the labels get clipped.

While you cannot simply fix this, I can make several suggestions:

1. Turn off intelligent labels.
this.radChart.DefaultView.ChartArea.SmartLabelsEnabled = false;

2. Change the LayoutMode of the AxisX to Inside:
this.radChart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Inside;

3. Increase the height of the chart so that there is enough space for all labels.

4. Do not show any labels. Show tooltips instead.

5. Decrease the font size of the textbox in the ItemLabel (see how in this help topic).

Let us know if these suggestions (or a combination of them) help you.

Regards,
Petar Marchev
the Telerik team

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

0
spj11
Top achievements
Rank 1
answered on 31 May 2012, 06:00 AM
Do the 2 issues that I call out with bar charts in this thread: http://www.telerik.com/community/forums/silverlight/tileview/tileview-layout-help.aspx related to the same issue that you are describe here?  
Tags
Chart
Asked by
Muhammmad
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
spj11
Top achievements
Rank 1
Share this question
or