Axis Label Spacing

Thread is closed for posting
2 posts, 0 answers
  1. Dean
    Dean avatar
    12 posts
    Member since:
    Feb 2008

    Posted 19 Mar 2009 Link to this post

    How do I control the spacing of labels along the x- axis? Some of the column descriptions in my chart are long and run into one another.

    As an alternative, how can I force the label to be 2 lines? I've tried inserting <br> into the textblock text, but this does not seem to have the desired effect.

    I've also set 

    IntelligentLabelsEnabled

     

    ="True"

     

     as well as  

    XAxis

     

    AutoScale="True"

    but these settings did not seem to affect the X axis labels

     

  2. Dessy
    Admin
    Dessy avatar
    73 posts

    Posted 20 Mar 2009 Link to this post

    Hello Dean Jurecic,

    You can find an example of multi-line chart labels here.

    You can also change the RotationAngle value according to the number of items in the chart. You can even set it to 90 so that the labels appear vertically.

    Additionally, you can control the spaces between the labels along the XAxis by changing the LabelStep property of the XAxis, e.g. setting it to 2 will force every other label to disappear.

    Hope this help.

    Sincerely yours,

    Dessy
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top