Padding/Margin Along the X axis

Thread is closed for posting
5 posts, 0 answers
  1. Mark Gregor
    Mark Gregor avatar
    15 posts
    Member since:
    Nov 2006

    Posted 27 May 2010 Link to this post

    Hi All,

    I created a simple RadChart and have labeled the XAxis "Week-Ending Date" but the text of the label is sitting on the bottom border of the chart and doesn't look good.  I've attached a screenshot to show you.  I've tried adding padding and margin to the bottom of this but it seems to not do anything. 

    Here is the code I am using for the XAxis:
                RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Week-Ending Date";
                RadChart1.PlotArea.XAxis.AxisLabel.Appearance.Position.AlignedPosition = AlignedPositions.Center;
                RadChart1.PlotArea.XAxis.AxisLabel.Appearance.Dimensions.Paddings.Bottom.Type = Telerik.Charting.Styles.UnitType.Pixel;
                RadChart1.PlotArea.XAxis.AxisLabel.Appearance.Dimensions.Paddings.Bottom.Value = 25;
                RadChart1.PlotArea.XAxis.AxisLabel.Appearance.Dimensions.Margins.Bottom.Type = Telerik.Charting.Styles.UnitType.Pixel;
                RadChart1.PlotArea.XAxis.AxisLabel.Appearance.Dimensions.Margins.Bottom.Value = 25;

    Any idea's
    I really appreciate the help!
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 01 Jun 2010 Link to this post

    Hi Mark,

    The easiest way to solve such issues is to set the AutoLayout property of RadChart to true. Alternatively, you may adjust the plot area margins manually.

    Best regards,
    Ves
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark Gregor
    Mark Gregor avatar
    15 posts
    Member since:
    Nov 2006

    Posted 09 Jun 2010 Link to this post

    Thank you this resolved it, I also think it might have been caching some stuff as well.

    Thanks again.

  5. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 22 Apr 2013 Link to this post

    Hi Ves,

    your link redirects to an error page.
  6. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 25 Apr 2013 Link to this post

    Hi Sonia,

    I have fixed it, here is the correct url:

    http://www.telerik.com/help/aspnet-ajax/chart-margins.html


    Best regards,
    Ves
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017