How to use IntervalAutoMode.FixedCount
I am trying to use the Microsoft Chart controls in a Windows forms application.
I want the Y-axis to always show 6 intervals. The length of every interval should be autocomputed. I think this should be easy by setting
area.AxisY.IntervalAutoMode = IntervalAutoMode.FixedCount;
But I can't get it to work - the n开发者_如何学Cumber of intervals varies. What property should I set to always have 6 intervals drawn in the chart?
You need to set the Axis.Interval property. I would adjust the range(Max-Min) to a value divisible by seven to ensure you have 6 intervals.
精彩评论