解决PieChart的Legend中多了serie的问题

This commit is contained in:
sericaer
2019-09-17 13:37:48 +08:00
parent 5f9028b33e
commit bdc1a43710

View File

@@ -144,8 +144,12 @@ namespace XCharts
/// <param name="show">whether to show this serie</param>
/// <returns>the added serie</returns>
public virtual Serie AddSerie(string serieName, SerieType type, bool show = true)
{
if(type != SerieType.Pie)
{
m_Legend.AddData(serieName);
}
return m_Series.AddSerie(serieName, type);
}