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

PlotArea.XAxis.Step does not appear to work; crazy x-axis ticks

1 Answer 66 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 24 Mar 2009, 04:21 PM

With this code:

 

chart.PlotArea.XAxis.AutoScale =

false;

 

chart.PlotArea.XAxis.MinValue = 0.0;

chart.PlotArea.XAxis.MaxValue =2.53;

chart.PlotArea.XAxis.Step = 1000;

// (maximum.Value - minimum.Value) / 10.0;

Whatever the step - 1, 10, 1000, 10th of difference, the x-axis draws so many labels and ticks that the x-axis becomes a complete mush. Why?

The only reason I am turning off autoscaling on this line chart is that autoscaling puts the first point on the axis some way in from the left, and the last point some way in from the right. So an alternative solution would be if you could tell me how to make autoscale put the first and last points on the extreme left and right

cheers

 

1 Answer, 1 is accepted

Sort by
0
Dessy
Telerik team
answered on 25 Mar 2009, 09:16 AM
Hi Matthew,

You can achieve this by setting the LayoutMode property to 'Normal'. This way you will not need to alter AutoScale, MinValue, MaxValue and Step properties.

RadChart1.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Normal;  

Hope this helps.

Best wishes,
Dessy
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Matthew
Top achievements
Rank 1
Answers by
Dessy
Telerik team
Share this question
or