AxisX step?

2 posts, 0 answers
  1. Enill
    Enill avatar
    41 posts
    Member since:
    Apr 2010

    Posted 18 May 2010 Link to this post

    Hi, my question is pretty simple actually.

    I have a chart with AxisX representing 1000 days but only 100 points in my lines.

    How can i make it so the AxisX label is visible only every 200 days? ex: 0...200...400...600...800...1000...

    The 100 points inside my lines need to cover all the 1000 days.

    Can i force the XValue of a point? I tried to set the xvalue to force it but its not working like i want, what i did was to set Xvalue of a point to 50 for exemple, but if its the 3rd points in my lines i will stay far left in the chart and not position itself at position 50 in the 1000.

    Not sure if you understand but anyway thanks in advance!
  2. Enill
    Enill avatar
    41 posts
    Member since:
    Apr 2010

    Posted 18 May 2010 Link to this post

    Nevermind finally, i found that i only had to use the "AutoRange" property to fix my problem.

    rc.DefaultView.ChartArea.AxisX.AutoRange = false

Back to Top