* UILineChart: 增加了Y轴自定义坐标显示

This commit is contained in:
Sunny 2024-07-01 22:57:32 +08:00
parent 688ff477d1
commit 3333fe2aba

View File

@ -52,6 +52,7 @@
* 2023-10-05: V3.5.0 X轴和Y轴鼠标选择区域并返回选中范围
* 2023-10-20: V3.5.1 线DashStyle样式
* 2023-11-22: V3.6.0
* 2024-07-01: V3.6.7 Y轴自定义坐标显示
******************************************************************************/
using System;
@ -445,6 +446,11 @@ namespace Sunny.UI
else
label = YLabels[i].ToString("F" + Option.YAxis.AxisLabel.DecimalPlaces);
if (Option.YAxis.HaveCustomLabels && Option.YAxis.CustomLabels.GetLabel(i).IsValid())
{
label = Option.YAxis.CustomLabels.GetLabel(i);
}
Size sf = TextRenderer.MeasureText(label, TempFont);
widthMax = Math.Max(widthMax, sf.Width);