diff --git a/建材不燃性试验炉/BalanceChartWindow.xaml.cs b/建材不燃性试验炉/BalanceChartWindow.xaml.cs index dec8117..e61f4bd 100644 --- a/建材不燃性试验炉/BalanceChartWindow.xaml.cs +++ b/建材不燃性试验炉/BalanceChartWindow.xaml.cs @@ -105,10 +105,12 @@ namespace jiancaiburanxing axisX.GridLinesMinorVisible = false; // 设置标签格式 - 修正这里 - axisX.Label = new AxisLabel - { - TextPattern = "{V:F0}秒" // 添加格式化,显示整数 - }; + //axisX.Label = new AxisLabel + //{ + // TextPattern = "{V:F0}秒" // 添加格式化,显示整数 + //}; + axisX.Label = new AxisLabel(); + axisX.Label.TextPattern = "{V:F0}秒"; } // 设置Y轴 - 温度 @@ -143,10 +145,12 @@ namespace jiancaiburanxing axisY.GridLinesMinorVisible = false; // 设置标签格式 - axisY.Label = new AxisLabel - { - TextPattern = "{V:F0}°C" - }; + //axisY.Label = new AxisLabel + //{ + // TextPattern = "{V:F0}°C" + //}; + axisY.Label = new AxisLabel(); + axisY.Label.TextPattern = "{V:F0}°C"; } } }