优化清空并重新添加数据后的自动刷新问题

This commit is contained in:
monitor1394
2020-03-11 08:41:42 +08:00
parent cb86799e44
commit 4606d65a5c
7 changed files with 29 additions and 8 deletions

View File

@@ -92,7 +92,9 @@ namespace XCharts
{
m_Series.ClearData();
m_Legend.ClearData();
m_Tooltip.ClearValue();
m_CheckAnimation = false;
m_ReinitLabel = true;
RefreshChart();
}
@@ -105,7 +107,9 @@ namespace XCharts
{
m_Legend.ClearData();
m_Series.RemoveAll();
m_Tooltip.ClearValue();
m_CheckAnimation = false;
m_ReinitLabel = true;
RefreshChart();
}