开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜