MSChart轴线

时间:2010-05-18 12:18:04

标签: c# mschart

如何在图表中显示每个条形的轴线?我只排在第二,第四......,

alt text http://img35.imageshack.us/img35/6106/chartiu.png

1 个答案:

答案 0 :(得分:3)

我找到了答案:

        chartArea.AxisX.MajorGrid.Interval = 1;
        chartArea.AxisX.MajorTickMark.Interval = 1;
        chartArea.AxisX.LabelStyle.Interval = 1;

现在看起来像:

alt text http://img683.imageshack.us/img683/5818/chartig.png