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

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

@@ -277,7 +277,7 @@ namespace XCharts
int count = 0;
foreach (var serie in series.list)
{
if (serie.show && serie.type == type)
if (serie.show && (serie.type == type || serie.type == SerieType.Custom))
{
if (stackName.Equals(serie.stack)) count++;
if (count >= 2) return true;