Bar Chart axis label hide due to numbers of records

3 posts, 0 answers
  1. Muhammmad
    Muhammmad avatar
    3 posts
    Member since:
    Sep 2010

    Posted 10 May 2012 Link to this post


    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. Petar Marchev
    Petar Marchev avatar
    1029 posts

    Posted 14 May 2012 Link to this post

    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.

    Petar Marchev
    the Telerik team

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

  3. spj11
    spj11 avatar
    18 posts
    Member since:
    Jun 2011

    Posted 31 May 2012 Link to this post

    Do the 2 issues that I call out with bar charts in this thread: related to the same issue that you are describe here?  
Back to Top