增加AxisLabelshowZeroLabel设置是否显示0刻度

This commit is contained in:
monitor1394
2025-04-15 22:51:59 +08:00
parent ccf815c853
commit 21ffcba0c0
10 changed files with 46 additions and 14 deletions

View File

@@ -616,13 +616,13 @@ namespace XCharts.Runtime
return m_Position == AxisPosition.Bottom;
}
public bool IsNeedShowLabel(int index, int total = 0)
public bool IsNeedShowLabel(int index, int total = 0, string content = null)
{
if (total == 0)
{
total = context.labelValueList.Count;
}
return axisLabel.IsNeedShowLabel(index, total);
return axisLabel.IsNeedShowLabel(index, total, content);
}
public void SetNeedUpdateFilterData()