Axis Labels display issue

Thread is closed for posting
3 posts, 0 answers
  1. Krishna Samaga
    Krishna Samaga avatar
    15 posts
    Member since:
    Oct 2009

    Posted 19 Jul 2010 Link to this post


    I have a telerik radchart created dynamicaly in my web page. I have made the series orientation of the graph to Horizontal so that i get more space to display the x-axis labels in the graph. My axis label texts are quite lengthy & i am not able to display them to the full. After few charecters, they are getting displayed with "..." as shown in attached image-1. I want to display the complete text for labels. The complete text is shown in Image-2.

    Also i dont want any negetive numbers in y-axis. Meaning i want the start value to be Zero. I tried setting minimum value=0 but was of no help :(.

    Please help me fixing these issues ASAP.

    Krishna Samaga B.
  2. Velin
    Velin avatar
    391 posts

    Posted 22 Jul 2010 Link to this post

    Hello Krishna Samaga,

    You need these two lines of code to achieve the desired effect:
    RadChart1.AutoLayout = true;
    RadChart1.PlotArea.YAxis.VisibleValues = ChartAxisVisibleValues.Positive;

    Best wishes,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Krishna Samaga
    Krishna Samaga avatar
    15 posts
    Member since:
    Oct 2009

    Posted 30 Jul 2010 Link to this post

    Thanks a lot telerik team!

    The solution you mentioned worked out for me :)

    Also i could resolve the issue of lenghty axis texts by setting max lenght. Below is the code i used to fix the issue.


    chart.PlotArea.XAxis[count].TextBlock.Appearance.MaxLength = text.Length

    Krishna Samaga B.

Back to Top