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

Padding on ends of X axis

3 Answers 63 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Baatezu
Top achievements
Rank 2
Baatezu asked on 23 Jul 2010, 01:40 AM
I was wondering how I'd add some padding to the ends of the x axis. Right now I have my datapoints only 1/2 showing as they go right to the very end of the axis.

I had this once before, but can't figure out what I'm doing wrong. I'm pretty sure this is a simple thing, I just can't find the correct resource to point out what it is I'm missing.

Thanks


EDIT - I've added a chart that shows exactly the issue I'm dealing with. It even shows that I need the padding on the top side as well.

EDIT2 - Tried to add a chart, it's not showing, not entirely sure why. :/

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 28 Jul 2010, 09:38 AM
Hi Baatezu,

Basically, the padding and margins for the chart can shift the rendered chart, as shown in the code sample below:

<PlotArea>                       
<Appearance Dimensions-Margins="0,180,0,0" Dimensions-Paddings="0,0,0,0">                        
</Appearance>                           
</PlotArea>

However, a more suitable approach may be to extend the plot area is described in this article:

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

I hope this information gets you started properly.

Kind regards,
Yavor
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
Baatezu
Top achievements
Rank 2
answered on 29 Jul 2010, 12:29 AM
That link works great for the top Y points.
The Y points on the bottom are still 1/2 on the grid.
Same with the X points on the edges. 

I tried to use the margin and padding, but no matter what I set them to, they had no effect. the Margins aren't set anywhere else in my code.

I'm trying to avoid adding more X range, as I'm displaying date information, and am trying to only display the date range I'm in.

Any tips/pointers are appreciated.
0
Yavor
Telerik team
answered on 30 Jul 2010, 09:12 AM
Hello Baatezu,

You can alter the layout mode, so that the series are rendered as per your requirements. Additional information on this is available in the following example:

http://demos.telerik.com/aspnet-ajax/chart/examples/skinning/lines/defaultcs.aspx

Best wishes,
Yavor
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
Tags
Chart (Obsolete)
Asked by
Baatezu
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Baatezu
Top achievements
Rank 2
Share this question
or