修复ConvertXYAxis()多次调用后图表异常的问题

This commit is contained in:
monitor1394
2024-04-23 22:16:28 +08:00
parent b1522a27d4
commit 0c92d08f0d
4 changed files with 17 additions and 1 deletions

View File

@@ -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();
}
}