mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 10:50:08 +00:00
修复Pie无数据时绘制异常的问题
This commit is contained in:
@@ -201,6 +201,7 @@ namespace XCharts.Runtime
|
||||
/// <returns></returns>
|
||||
public static bool IsAllZeroValue(Serie serie, int dimension = 1)
|
||||
{
|
||||
if (serie.dataCount == 0) return false;
|
||||
foreach (var serieData in serie.data)
|
||||
{
|
||||
if (serieData.GetData(dimension) != 0) return false;
|
||||
|
||||
Reference in New Issue
Block a user