Padding on ends of X axis

Thread is closed for posting
4 posts, 0 answers
  1. Baatezu
    Baatezu avatar
    110 posts
    Member since:
    Aug 2007

    Posted 22 Jul 2010 Link to this post

    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. :/
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 28 Jul 2010 Link to this post

    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
  3. Baatezu
    Baatezu avatar
    110 posts
    Member since:
    Aug 2007

    Posted 28 Jul 2010 Link to this post

    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.
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 30 Jul 2010 Link to this post

    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
Back to Top