diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 12ec6e2f..c39c03fd 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -70,6 +70,7 @@ slug: /changelog ## master +* (2023.12.22) 修复`Scatter`散点图部分边界数据不显示的问题 * (2023.12.21) 修复`TriggerTooltip()`接口在指定0或最大index时可能无法触发的问题 * (2023.12.19) 修复`Legend`的`LabelStyle`设置`formatter`后不生效的问题 * (2023.12.12) 增加`Legend`的`TextLimit`可限制图例显示文本的长度 diff --git a/Runtime/Serie/Scatter/BaseScatterHandler.cs b/Runtime/Serie/Scatter/BaseScatterHandler.cs index 430f0bb0..56c044a8 100644 --- a/Runtime/Serie/Scatter/BaseScatterHandler.cs +++ b/Runtime/Serie/Scatter/BaseScatterHandler.cs @@ -164,11 +164,9 @@ namespace XCharts.Runtime if (serieData.IsDataChanged()) dataChanging = true; - float pX = m_Grid.context.x + xAxis.axisLine.GetWidth(theme.axis.lineWidth); - float pY = m_Grid.context.y + yAxis.axisLine.GetWidth(theme.axis.lineWidth); float xDataHig = GetDataHig(xAxis, xValue, m_Grid.context.width); float yDataHig = GetDataHig(yAxis, yValue, m_Grid.context.height); - var pos = new Vector3(pX + xDataHig, pY + yDataHig); + var pos = new Vector3(m_Grid.context.x + xDataHig, m_Grid.context.y + yDataHig); if (!m_Grid.Contains(pos)) continue;