This is a migrated thread and some comments may be shown as answers.

Padding/Margin Along the X axis

4 Answers 100 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark Gregor
Top achievements
Rank 1
Mark Gregor asked on 27 May 2010, 04:46 PM
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!

4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 01 Jun 2010, 12:44 PM
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.
0
Mark Gregor
Top achievements
Rank 1
answered on 09 Jun 2010, 04:36 PM
Thank you this resolved it, I also think it might have been caching some stuff as well.

Thanks again.

0
Sonia
Top achievements
Rank 1
answered on 22 Apr 2013, 10:30 AM
Hi Ves,

your link redirects to an error page.
0
Ves
Telerik team
answered on 25 Apr 2013, 07:50 AM
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.
Tags
Chart (Obsolete)
Asked by
Mark Gregor
Top achievements
Rank 1
Answers by
Ves
Telerik team
Mark Gregor
Top achievements
Rank 1
Sonia
Top achievements
Rank 1
Share this question
or