From 3451b746697ad7daa6711787865eb9ff77ee53b5 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 24 May 2021 21:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`PieChart`=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=85=A8=E4=B8=BA`0`=E6=97=B6`Label`=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG-EN.md | 1 + CHANGELOG.md | 1 + Runtime/Internal/DrawSeriePie.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG-EN.md b/CHANGELOG-EN.md index fad5f2f5..ec8b825e 100644 --- a/CHANGELOG-EN.md +++ b/CHANGELOG-EN.md @@ -34,6 +34,7 @@ ## master +* (2021.05.24) Fixed the problem that `Label` could not display properly when `PieChart` data were all `0` * (2021.05.24) Fixed an issue where `Serie Name` was not working on the `Add Serie` panel (#149) * (2021.05.23) Added `TextStyle` `wrap` to set whether to wrap lines * (2021.05.23) Added` axisLabel `to` autoAlign `whether to set alignment automatically diff --git a/CHANGELOG.md b/CHANGELOG.md index c99199c1..5e1df578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ ## master +* (2021.05.24) 修复`PieChart`数据全为`0`时`Label`无法正常显示的问题 * (2021.05.24) 修复`Add Serie`面板上`Serie Name`不生效的问题 (#149) * (2021.05.23) 增加`TextStyle`的`wrap`设置是否自动换行 * (2021.05.23) 增加`AxisLabel`的`autoAlign`设置是否让系统自动设置对齐方式 diff --git a/Runtime/Internal/DrawSeriePie.cs b/Runtime/Internal/DrawSeriePie.cs index 657eef01..17814387 100644 --- a/Runtime/Internal/DrawSeriePie.cs +++ b/Runtime/Internal/DrawSeriePie.cs @@ -188,6 +188,7 @@ namespace XCharts zeroReplaceValue = totalDegree / data.Count; serie.runtimeDataMax = zeroReplaceValue; serie.runtimePieDataTotal = 360; + dataTotalFilterMinAngle = 360; } else {