Skip to content

Commit

Permalink
修复PieChart数据全为0Label无法正常显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
monitor1394 committed May 24, 2021
1 parent efc82d0 commit 93e376b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Assets/XCharts/CHANGELOG-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Assets/XCharts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`设置是否让系统自动设置对齐方式
Expand Down
1 change: 1 addition & 0 deletions Assets/XCharts/Runtime/Internal/DrawSeriePie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ private void UpdateRuntimeData(Serie serie)
zeroReplaceValue = totalDegree / data.Count;
serie.runtimeDataMax = zeroReplaceValue;
serie.runtimePieDataTotal = 360;
dataTotalFilterMinAngle = 360;
}
else
{
Expand Down

0 comments on commit 93e376b

Please sign in to comment.