增加ResetChartStatus()可主动重置图表状态

This commit is contained in:
monitor1394
2023-12-05 22:43:49 +08:00
parent 225fc69e70
commit 1c6904f074
2 changed files with 12 additions and 0 deletions

View File

@@ -70,6 +70,8 @@ slug: /changelog
## master
* (2023.12.05) 增加`ResetChartStatus()`可主动重置图表状态
## v3.9.0
版本要点:

View File

@@ -725,5 +725,15 @@ namespace XCharts.Runtime
tooltip.SetActive(false);
}
}
/// <summary>
/// reset chart status. When some parameters are set, due to the animation effect, the chart status may not be correct.
/// ||重置图表状态。当设置某些参数后,由于动画影响,可能导致图表状态不正确,此时可以调用该接口重置图表状态。
/// </summary>
[Since("v3.10.0")]
public void ResetChartStatus()
{
foreach (var handler in m_SerieHandlers) handler.ForceUpdateSerieContext();
}
}
}