优化Comment坐标刷新

This commit is contained in:
monitor1394
2025-03-21 21:39:12 +08:00
parent 20da9dbe94
commit 8bc66ca30a
2 changed files with 4 additions and 4 deletions

View File

@@ -614,7 +614,7 @@ namespace XCharts.Runtime
if (endLabelStyle == null)
return;
var dataCount = serie.context.dataPoints.Count;
var active = endLabelStyle.show && dataCount > 0;
var active = endLabelStyle.show && dataCount > 0 && !ChartHelper.IsZeroVector(serie.context.lineEndPostion);
m_EndLabel.SetActive(active);
if (active)
{