优化代码,更好的支持自定义图表

This commit is contained in:
monitor1394
2021-04-28 06:56:28 +08:00
parent 6a76f25b7d
commit 6ded23a72e
5 changed files with 6 additions and 8 deletions

View File

@@ -471,6 +471,7 @@ namespace XCharts
/// <returns></returns>
public bool IsDataIndexChanged()
{
if (runtimeDataIndex.Count < 2 || lastDataIndex.Count < 2) return false;
return runtimeDataIndex[0] != lastDataIndex[0] ||
runtimeDataIndex[1] != lastDataIndex[1];
}