This commit is contained in:
wxt
2026-02-02 10:30:12 +08:00
parent 02e29cd00e
commit c212a5cab8

View File

@@ -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";
}
}
}