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

X-Axis is not starting at chart begining

1 Answer 25 Views
Chart
This is a migrated thread and some comments may be shown as answers.
kristjan einarsson
Top achievements
Rank 1
kristjan einarsson asked on 26 Nov 2009, 03:25 PM
Hi,
I am creating a chart in code behind.

I have a small problem when using SplineAreaSeriesDefinition -> see attachment.
I cant get the series x axis to start at zero ?

Does anyone have a tip ?

Best regards.
krissi.

1 Answer, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 30 Nov 2009, 12:06 PM
Hi Kristjan Einarsson,

You can fix your this by changing the LayoutMode property of the X axis. The X axis has four different layout modes: Normal, Inside, Between and Auto. There is more information about them in our help:
http://www.telerik.com/help/wpf/radchart-features-layout-mode.html

In your case, you should set the "LayoutMode" property of the X-Axis to Normal or Auto. See below:

this.radChart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Normal;

I hope this helps!

All the best,
Sia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
kristjan einarsson
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or