Fixed the problem of displaying exceptions after adding data again when DataZoom is enable (#163)

This commit is contained in:
monitor1394
2021-08-16 14:47:02 +08:00
parent f08ae794ae
commit 8fccfdb5fc

View File

@@ -1365,6 +1365,7 @@ namespace XCharts
RemoveData(0);
}
m_Data.Clear();
m_NeedUpdateFilterData = true;
SetVerticesDirty();
}
@@ -1398,6 +1399,7 @@ namespace XCharts
m_DownSmoothPoints.Remove(serieData.index);
}
m_Data.RemoveAt(index);
m_NeedUpdateFilterData = true;
}
}
@@ -1426,6 +1428,7 @@ namespace XCharts
{
if (m_InsertDataToHead) m_Data.Insert(0, serieData);
else m_Data.Add(serieData);
m_NeedUpdateFilterData = true;
}
private void CheckDataName(string dataName)