Aligning markers and labels

Thread is closed for posting
7 posts, 0 answers
  1. Julian
    Julian avatar
    11 posts
    Member since:
    Dec 2011

    Posted 26 Jul 2013 Link to this post

    Hi, I've a standard line chart. It is possible to align the markers so that they are on the grid lines. And also, so that the date labels on the X-axis match up to the grid lines instead of being in between lines. Thanks.
  2. Julian
    Julian avatar
    11 posts
    Member since:
    Dec 2011

    Posted 30 Jul 2013 Link to this post

    Perhaps I'm not explaining myself too well. See the line chart below. The grid lines are inbetween the markers.

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

    I'd like them to line up with the markers, as per image attached.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 31 Jul 2013 Link to this post

    Hello Julian,

    To achieve the desired effect you can the LayoutMode property to Inside. It can be done either
    declaratively:
    <telerik:RadChart ID="RadChart1" runat="server" PlotArea-XAxis-LayoutMode="Inside">
    </telerik:RadChart>
    or programmatically:
    RadChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside;

    Also, you can read the relevant online documentation.

    Regards,
    Rosko
    Telerik
    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 the blog feed now.
  5. Julian
    Julian avatar
    11 posts
    Member since:
    Dec 2011

    Posted 31 Jul 2013 Link to this post

    Excellent. Thanks a lot!
  6. Julian
    Julian avatar
    11 posts
    Member since:
    Dec 2011

    Posted 31 Jul 2013 Link to this post

    Hi, actually, one thing. Is there a reason why the lines do not cover the first and last columns though? Can this be altered?
  7. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 02 Aug 2013 Link to this post

    Hello Julian,

    This behavior is related to the LayoutMode property. Did you try setting the property to Between?

    Regards,
    Rosko
    Telerik
    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 the blog feed now.
  8. Julian
    Julian avatar
    11 posts
    Member since:
    Dec 2011

    Posted 02 Aug 2013 Link to this post

    Hi, ah, I see. I played around with that setting. Working as required now. Thanks!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017