修复饼图当数据名称默认为空时颜色显示异常的问题

This commit is contained in:
monitor1394
2019-10-16 19:05:24 +08:00
parent 6b66b5a129
commit f88a44bd48
3 changed files with 6 additions and 2 deletions

View File

@@ -872,7 +872,7 @@ namespace XCharts
int numName = -1;
if (int.TryParse(name, out numName))
{
if (numName >= 0 && numName < list.Count) return false;
if (numName >= 0 && numName < 100) return false;
}
return true;
}