Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 设置Y轴比例MS图表_C#_Mschart - Fatal编程技术网

C# 设置Y轴比例MS图表

C# 设置Y轴比例MS图表,c#,mschart,C#,Mschart,我使用的是MS图表,基本上是折线图 我还使用标签格式来显示数字,使用 chart2.ChartAreas[0].AxisY.LabelStyle.Format = "#,##0.00;(#,##0.00)"; 属性IsStartedFromZero设置为false 这适用于大多数情况 但是,如果我使用值(.1、.1、.09)或(.25、.25.22)进行绘图,将以Y轴比例显示重复的值。这是由于标签的格式设置造成的 在excel中,在“格式轴”选项下有设置主单位的选项,如果主单位设置为0.01(

我使用的是MS图表,基本上是折线图

我还使用标签格式来显示数字,使用

chart2.ChartAreas[0].AxisY.LabelStyle.Format = "#,##0.00;(#,##0.00)";
属性IsStartedFromZero设置为false

这适用于大多数情况

但是,如果我使用
值(.1、.1、.09)或(.25、.25.22)进行绘图,
将以Y轴比例显示重复的值。这是由于标签的格式设置造成的

在excel中,在“格式轴”选项下有设置主单位的选项,如果主单位设置为0.01(固定),则在excel中正确创建图表

如何在microsoft chart中设置此设置,我想使用MS chart创建相同的设置

尝试了
chart2.ChartAreas[0]。AxisY.Interval=.01,
,但这不起作用

任何其他解决这个问题的建议