mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
修复divide by zero的问题
This commit is contained in:
@@ -215,6 +215,10 @@ namespace XCharts.Runtime
|
||||
{
|
||||
dataTotalFilterMinAngle = GetTotalAngle(serie, runtimePieDataTotal, ref totalDegree);
|
||||
}
|
||||
if (dataTotalFilterMinAngle == 0)
|
||||
{
|
||||
dataTotalFilterMinAngle = 360;
|
||||
}
|
||||
for (int n = 0; n < data.Count; n++)
|
||||
{
|
||||
var serieData = data[n];
|
||||
|
||||
Reference in New Issue
Block a user