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; }