From 8c840404e00a5a600febd5bba93d67073d75c3bb Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 16 Sep 2023 20:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Tooltip`=E5=9C=A8=E7=B1=BB?= =?UTF-8?q?=E7=9B=AE=E8=BD=B4=E6=97=A0=E6=95=B0=E6=8D=AE=E6=97=B6=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=20(#279)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Axis/AxisHandler.cs | 2 +- Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 7a014141..f54e0784 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -68,6 +68,7 @@ slug: /changelog ## master +* (2023.09.16) 修复`Tooltip`在类目轴无数据时异常报错的问题 (#279) * (2023.09.16) 修复`Pie`无数据时绘制异常的问题 * (2023.09.12) 增加`Pie`的`radiusGradient`可设置半径方向的渐变效果 * (2023.09.05) 优化`LabelLine`的`lineEndX`在`Pie`中的表现 diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index 4651da8a..21cb690e 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -38,7 +38,7 @@ namespace XCharts return; if (!grid.context.isPointerEnter) { - axis.context.pointerValue = double.NaN; + axis.context.pointerValue = double.PositiveInfinity; } else { diff --git a/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs b/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs index a72e17c5..970ecfeb 100644 --- a/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs +++ b/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs @@ -34,7 +34,7 @@ namespace XCharts.Runtime if (!polar.context.isPointerEnter) { - axis.context.pointerValue = double.NaN; + axis.context.pointerValue = double.PositiveInfinity; return; }