From 0499126e5515b64e52e372b59f73835b3d8d28ff Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Thu, 30 Oct 2025 22:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0`Scatter`=E7=9A=84`ignore`?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E5=BF=BD=E7=95=A5=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 2 ++ Editor/Series/ScatterEditor.cs | 2 ++ Runtime/Serie/Scatter/BaseScatterHandler.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 86bf16c8..533dd576 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -80,6 +80,8 @@ slug: /changelog ## master +* (2025.10.30) 增加`Scatter`的`ignore`支持设置忽略数据 +* (2025.10.24) 优化`Sankey`的线条绘制排序 * (2025.10.22) 增加`Pie`的`pieType`支持实心饼图和线框柄图 (#349) * (2025.09.05) 优化`MarkLine`的表现 * (2025.09.01) 增加`AxisLine`的`startExtendLength`和`endExtendLength`设置轴线的延长线 diff --git a/Editor/Series/ScatterEditor.cs b/Editor/Series/ScatterEditor.cs index 5519bcb7..76165131 100644 --- a/Editor/Series/ScatterEditor.cs +++ b/Editor/Series/ScatterEditor.cs @@ -18,6 +18,8 @@ namespace XCharts.Editor } PropertyField("m_MaxCache"); PropertyField("m_Clip"); + PropertyField("m_Ignore"); + PropertyField("m_IgnoreValue"); PropertyField("m_Symbol"); PropertyField("m_ItemStyle"); diff --git a/Runtime/Serie/Scatter/BaseScatterHandler.cs b/Runtime/Serie/Scatter/BaseScatterHandler.cs index c8e44eb1..2e5446ff 100644 --- a/Runtime/Serie/Scatter/BaseScatterHandler.cs +++ b/Runtime/Serie/Scatter/BaseScatterHandler.cs @@ -166,6 +166,8 @@ namespace XCharts.Runtime var symbol = SerieHelper.GetSerieSymbol(serie, serieData); if (!symbol.ShowSymbol(serieData.index, maxCount)) continue; + if (serie.IsIgnoreValue(serieData)) + continue; var state = SerieHelper.GetSerieState(serie, serieData, true);