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

Aligning markers and labels

6 Answers 76 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 26 Jul 2013, 11:40 AM
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.

6 Answers, 1 is accepted

Sort by
0
Julian
Top achievements
Rank 1
answered on 30 Jul 2013, 09:33 AM
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.
0
Rosko
Telerik team
answered on 31 Jul 2013, 10:19 AM
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.
0
Julian
Top achievements
Rank 1
answered on 31 Jul 2013, 11:21 AM
Excellent. Thanks a lot!
0
Julian
Top achievements
Rank 1
answered on 31 Jul 2013, 11:45 AM
Hi, actually, one thing. Is there a reason why the lines do not cover the first and last columns though? Can this be altered?
0
Rosko
Telerik team
answered on 02 Aug 2013, 10:10 AM
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.
0
Julian
Top achievements
Rank 1
answered on 02 Aug 2013, 11:03 AM
Hi, ah, I see. I played around with that setting. Working as required now. Thanks!
Tags
Chart (Obsolete)
Asked by
Julian
Top achievements
Rank 1
Answers by
Julian
Top achievements
Rank 1
Rosko
Telerik team
Share this question
or