mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 06:20:15 +00:00
Fixed the problem of displaying exceptions after adding data again when DataZoom is enable (#163)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user