mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 01:40:06 +00:00
[bug][pie] fix piechart create error with code (#206)
This commit is contained in:
@@ -100,7 +100,14 @@ namespace XCharts.Runtime
|
||||
{
|
||||
foreach (var serie in m_Series)
|
||||
{
|
||||
if (serie.serieName.Equals(serieName)) return serie;
|
||||
if (string.IsNullOrEmpty(serie.serieName))
|
||||
{
|
||||
if (string.IsNullOrEmpty(serieName)) return serie;
|
||||
}
|
||||
else if (serie.serieName.Equals(serieName))
|
||||
{
|
||||
return serie;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user