diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 088708c3..9de840a6 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -70,6 +70,8 @@ slug: /changelog ## master +* (2023.12.05) 增加`ResetChartStatus()`可主动重置图表状态 + ## v3.9.0 版本要点: diff --git a/Runtime/Internal/BaseChart.API.cs b/Runtime/Internal/BaseChart.API.cs index 259c32da..233a7bfb 100644 --- a/Runtime/Internal/BaseChart.API.cs +++ b/Runtime/Internal/BaseChart.API.cs @@ -725,5 +725,15 @@ namespace XCharts.Runtime tooltip.SetActive(false); } } + + /// + /// reset chart status. When some parameters are set, due to the animation effect, the chart status may not be correct. + /// ||重置图表状态。当设置某些参数后,由于动画影响,可能导致图表状态不正确,此时可以调用该接口重置图表状态。 + /// + [Since("v3.10.0")] + public void ResetChartStatus() + { + foreach (var handler in m_SerieHandlers) handler.ForceUpdateSerieContext(); + } } } \ No newline at end of file