X-Axis text labels rotated 90 cant get size right

Thread is closed for posting
4 posts, 0 answers
  1. Jason Finch
    Jason Finch avatar
    10 posts
    Member since:
    Oct 2005

    Posted 05 Oct 2007 Link to this post

    I've start to migrate our RadChart pages to RadChart prometheus. All charts are created in codebehind.

    For the Properties on the X-Axis text I cannot figure out how to expand the region to accomodate large text labels.

    I have large text x-axis labels like "Financial Year 2006/2007" rotated 90 degrees and they are being cropped at about the "Fin" level.

    I am changing properties in the namespace radChart.PlotArea.XAxis.Appearance.TextAppearance area.

    ie
    radChart.PlotArea.XAxis.Appearance.TextAppearance.Height
    radChart.PlotArea.XAxis.Appearance.TextAppearance.Width
    radChart.PlotArea.XAxis.Appearance.TextAppearance.RotationAngle.

    Sometimes with strange results, especially with fills and borders, they don't appear to align correctly with the rotated text.
    I've tried adjusting padding and margins as well with little success.

    Any clues?






  2. Jason Finch
    Jason Finch avatar
    10 posts
    Member since:
    Oct 2005

    Posted 05 Oct 2007 Link to this post

    Ok, so just found radChart.PlotArea.XAxis.Appearance.LabelAppearance.

    That's working better now!.

    I'm curious to know why both of these affect XAxis labels: radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle
    radChart.PlotArea.XAxis.Appearance.TextAppearance.RotationAngle

    Are they each doing different duties?





  3. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 08 Oct 2007 Link to this post

    Hello Jason,

    The LabelAppearance.RotationAngle defines the angle for rotating the axis label appearance elements while the TextAppearance.RotationAngle determines the angle for text rotation. The intuitive approach is to keep them synchronized in order to render the content of the axis labels in par with your preferences.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. Dave
    Dave avatar
    2 posts
    Member since:
    May 2007

    Posted 26 Oct 2007 Link to this post

    Thanks for this solution.  I was having this same issue.  Doesn't seem quite intuitive, but I suppose it works.
Back to Top