mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
增加ResetChartStatus()可主动重置图表状态
This commit is contained in:
@@ -70,6 +70,8 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2023.12.05) 增加`ResetChartStatus()`可主动重置图表状态
|
||||
|
||||
## v3.9.0
|
||||
|
||||
版本要点:
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user