RadChart StackedBar Axis is overlapping

Thread is closed for posting
2 posts, 0 answers
  1. Cory
    Cory avatar
    2 posts
    Member since:
    Jul 2008

    Posted 11 Jul 2011 Link to this post

    How do I get the text from overlapping in the Major tick area.
    See attached picture
  2. Peshito
    Admin
    Peshito avatar
    581 posts

    Posted 14 Jul 2011 Link to this post

    Hello Cory,

    Your axis labels are overlapped because there is not enough space for them to be fully displayed. By default the AutoScale property is set to True. Therefore the axis Step value is calculated depending on the data range and the available space. In order to set your custom Step that will prevent your lables from overlapping you should set the AutoScale to False, then you need to define the axis MinValue and MaxValue. It would look like this:

    RadChart1.PlotArea.YAxis.AutoScale = false;
    RadChart1.PlotArea.YAxis.MinValue = 0;
    RadChart1.PlotArea.YAxis.MaxValue = 20000;
    RadChart1.PlotArea.YAxis.Step = 4000;


    Alternatively if you don't want to change the AutoScale property, you could increase your chart's size so there would be enough space for the labels to be displayed.

    Hope that helps.

    Regards,
    Peshito
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top