mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 05:50:09 +00:00
修复ConvertXYAxis()多次调用后图表异常的问题
This commit is contained in:
@@ -532,6 +532,7 @@ namespace XCharts.Runtime
|
||||
xAxis.context.maxValue = 0;
|
||||
yAxis.context.minValue = 0;
|
||||
yAxis.context.maxValue = 0;
|
||||
ResetChartStatus();
|
||||
RefreshChart();
|
||||
}
|
||||
}
|
||||
@@ -771,6 +772,7 @@ namespace XCharts.Runtime
|
||||
[Since("v3.10.0")]
|
||||
public void ResetChartStatus()
|
||||
{
|
||||
foreach (var component in m_Components) component.ResetStatus();
|
||||
foreach (var handler in m_SerieHandlers) handler.ForceUpdateSerieContext();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user