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

Thread is closed for posting
2 posts, 0 answers
  1. Matthew
    Matthew avatar
    18 posts
    Member since:
    Mar 2009

    Posted 24 Mar 2009 Link to this post

    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

     

  2. Dessy
    Admin
    Dessy avatar
    73 posts

    Posted 25 Mar 2009 Link to this post

    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.
Back to Top