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
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.
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
Hello Julian,
To achieve the desired effect you can the LayoutMode property to Inside. It can be done either
declaratively:
or programmatically:
Also, you can read the relevant online documentation.
Regards,
Rosko
Telerik
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
>
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
Hello Julian,
This behavior is related to the LayoutMode property. Did you try setting the property to Between?
Regards,
Rosko
Telerik
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!