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

AxisX step?

1 Answer 34 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Enill
Top achievements
Rank 1
Enill asked on 18 May 2010, 03:35 PM
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!

1 Answer, 1 is accepted

Sort by
0
Enill
Top achievements
Rank 1
answered on 18 May 2010, 06:33 PM
Nevermind finally, i found that i only had to use the "AutoRange" property to fix my problem.

rc.DefaultView.ChartArea.AxisX.AutoRange = false

Tags
Chart
Asked by
Enill
Top achievements
Rank 1
Answers by
Enill
Top achievements
Rank 1
Share this question
or