mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 12:40:12 +00:00
增加ResetChartStatus()可主动重置图表状态
This commit is contained in:
@@ -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