mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 01:40:06 +00:00
优化PieChart在数据全为0时的显示为等份的效果
This commit is contained in:
@@ -1326,6 +1326,17 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
|
||||
public float GetDataTotal(int dimension)
|
||||
{
|
||||
float total = 0;
|
||||
foreach (var sdata in data)
|
||||
{
|
||||
if (sdata.show)
|
||||
total += sdata.GetData(dimension);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得系列的数据列表
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user