This commit is contained in:
@@ -105,10 +105,12 @@ namespace jiancaiburanxing
|
|||||||
axisX.GridLinesMinorVisible = false;
|
axisX.GridLinesMinorVisible = false;
|
||||||
|
|
||||||
// 设置标签格式 - 修正这里
|
// 设置标签格式 - 修正这里
|
||||||
axisX.Label = new AxisLabel
|
//axisX.Label = new AxisLabel
|
||||||
{
|
//{
|
||||||
TextPattern = "{V:F0}秒" // 添加格式化,显示整数
|
// TextPattern = "{V:F0}秒" // 添加格式化,显示整数
|
||||||
};
|
//};
|
||||||
|
axisX.Label = new AxisLabel();
|
||||||
|
axisX.Label.TextPattern = "{V:F0}秒";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置Y轴 - 温度
|
// 设置Y轴 - 温度
|
||||||
@@ -143,10 +145,12 @@ namespace jiancaiburanxing
|
|||||||
axisY.GridLinesMinorVisible = false;
|
axisY.GridLinesMinorVisible = false;
|
||||||
|
|
||||||
// 设置标签格式
|
// 设置标签格式
|
||||||
axisY.Label = new AxisLabel
|
//axisY.Label = new AxisLabel
|
||||||
{
|
//{
|
||||||
TextPattern = "{V:F0}°C"
|
// TextPattern = "{V:F0}°C"
|
||||||
};
|
//};
|
||||||
|
axisY.Label = new AxisLabel();
|
||||||
|
axisY.Label.TextPattern = "{V:F0}°C";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user